Struct gimli::write::StringTable
source · [−]pub struct StringTable { /* private fields */ }
Expand description
A table of strings that will be stored in a .debug_str
section.
Implementations
sourceimpl StringTable
impl StringTable
sourcepub fn add<T>(&mut self, bytes: T) -> StringId where
T: Into<Vec<u8>>,
pub fn add<T>(&mut self, bytes: T) -> StringId where
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.
Trait Implementations
sourceimpl Debug for StringTable
impl Debug for StringTable
sourceimpl Default for StringTable
impl Default for StringTable
sourcefn default() -> StringTable
fn default() -> StringTable
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for StringTable
impl Send for StringTable
impl Sync for StringTable
impl Unpin for StringTable
impl UnwindSafe for StringTable
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more