pub struct NameEntry<'a> { /* private fields */ }Expand description
A decoded name table entry yielded by NameIter.
Implementations§
Source§impl<'a> NameEntry<'a>
impl<'a> NameEntry<'a>
Sourcepub fn offset(&self) -> usize
pub fn offset(&self) -> usize
Byte offset of this entry relative to the name table segment start.
Sourcepub fn hreftype(&self) -> i32
pub fn hreftype(&self) -> i32
hreftype of the TypeInfo this name belongs to, or -1 for global names.
Sourcepub fn name_flags(&self) -> u8
pub fn name_flags(&self) -> u8
Flags from the name table header (high byte of the namelen word).
Known flags: 0x10 = used as variable name, 0x20 = name in enum.
Auto Trait Implementations§
impl<'a> Freeze for NameEntry<'a>
impl<'a> RefUnwindSafe for NameEntry<'a>
impl<'a> Send for NameEntry<'a>
impl<'a> Sync for NameEntry<'a>
impl<'a> Unpin for NameEntry<'a>
impl<'a> UnsafeUnpin for NameEntry<'a>
impl<'a> UnwindSafe for NameEntry<'a>
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