Struct object::read::StringTable
source · pub struct StringTable<'data, R = &'data [u8]>where
R: ReadRef<'data>,{
data: Option<R>,
start: u64,
end: u64,
marker: PhantomData<&'data ()>,
}
Expand description
A table of zero-terminated strings.
This is used by most file formats for strings such as section names and symbol names.
Fields§
§data: Option<R>
§start: u64
§end: u64
§marker: PhantomData<&'data ()>
Implementations§
Trait Implementations§
source§impl<'data, R> Clone for StringTable<'data, R>
impl<'data, R> Clone for StringTable<'data, R>
source§fn clone(&self) -> StringTable<'data, R>
fn clone(&self) -> StringTable<'data, R>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'data, R> Debug for StringTable<'data, R>
impl<'data, R> Debug for StringTable<'data, R>
source§impl<'data, R: ReadRef<'data>> Default for StringTable<'data, R>
impl<'data, R: ReadRef<'data>> Default for StringTable<'data, R>
impl<'data, R> Copy for StringTable<'data, R>
Auto Trait Implementations§
impl<'data, R> Freeze for StringTable<'data, R>where
R: Freeze,
impl<'data, R> RefUnwindSafe for StringTable<'data, R>where
R: RefUnwindSafe,
impl<'data, R> Send for StringTable<'data, R>where
R: Send,
impl<'data, R> Sync for StringTable<'data, R>where
R: Sync,
impl<'data, R> Unpin for StringTable<'data, R>where
R: Unpin,
impl<'data, R> UnwindSafe for StringTable<'data, R>where
R: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)