pub struct NameIndexHeader<R: Reader> { /* private fields */ }Expand description
The header of a name index in the .debug_names section.
Implementations§
Source§impl<R: Reader> NameIndexHeader<R>
impl<R: Reader> NameIndexHeader<R>
Sourcepub fn offset(&self) -> DebugNamesOffset<R::Offset>
pub fn offset(&self) -> DebugNamesOffset<R::Offset>
Return the section offset of this name index.
Sourcepub fn compile_unit_count(&self) -> u32
pub fn compile_unit_count(&self) -> u32
Return the number of compilation units in this index.
Sourcepub fn local_type_unit_count(&self) -> u32
pub fn local_type_unit_count(&self) -> u32
Return the number of local type units in this index.
Sourcepub fn foreign_type_unit_count(&self) -> u32
pub fn foreign_type_unit_count(&self) -> u32
Return the number of foreign type units in this index.
Sourcepub fn bucket_count(&self) -> u32
pub fn bucket_count(&self) -> u32
Return the number of buckets in the hash table.
Sourcepub fn name_count(&self) -> u32
pub fn name_count(&self) -> u32
Return the number of unique name entries.
Sourcepub fn abbrev_table_size(&self) -> u32
pub fn abbrev_table_size(&self) -> u32
Return the size of the abbreviations table in bytes.
Sourcepub fn augmentation_string(&self) -> Option<&R>
pub fn augmentation_string(&self) -> Option<&R>
Return the augmentation string.
Trait Implementations§
Source§impl<R: Clone + Reader> Clone for NameIndexHeader<R>
impl<R: Clone + Reader> Clone for NameIndexHeader<R>
Source§fn clone(&self) -> NameIndexHeader<R>
fn clone(&self) -> NameIndexHeader<R>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<R> Freeze for NameIndexHeader<R>
impl<R> RefUnwindSafe for NameIndexHeader<R>
impl<R> Send for NameIndexHeader<R>
impl<R> Sync for NameIndexHeader<R>
impl<R> Unpin for NameIndexHeader<R>
impl<R> UnsafeUnpin for NameIndexHeader<R>
impl<R> UnwindSafe for NameIndexHeader<R>
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