Struct gimli::write::LineStringTable [−][src]
A table of strings that will be stored in a .debug_line_str section.
Implementations
impl LineStringTable[src]
pub fn add<T>(&mut self, bytes: T) -> LineStringId where
T: Into<Vec<u8>>, [src]
T: Into<Vec<u8>>,
Add a string to the string table and return its id.
If the string already exists, then return the id of the existing string.
Panics
Panics if bytes contains a null byte.
pub fn count(&self) -> usize[src]
Return the number of strings in the table.
pub fn get(&self, id: LineStringId) -> &[u8][src]
pub fn write<W: Writer>(
&self,
w: &mut DebugLineStr<W>
) -> Result<DebugLineStrOffsets>[src]
&self,
w: &mut DebugLineStr<W>
) -> Result<DebugLineStrOffsets>
Write the string table to the .debug_str section.
Returns the offsets at which the strings are written.
Trait Implementations
impl Debug for LineStringTable[src]
impl Default for LineStringTable[src]
fn default() -> LineStringTable[src]
Auto Trait Implementations
impl RefUnwindSafe for LineStringTable
impl Send for LineStringTable
impl Sync for LineStringTable
impl Unpin for LineStringTable
impl UnwindSafe for LineStringTable
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,