Struct gimli::TypeUnitHeader
[−]
[src]
pub struct TypeUnitHeader<'input, Endian> where Endian: Endianity {
// some fields omitted
}
The header of a type unit's debugging information.
Methods
impl<'input, Endian> TypeUnitHeader<'input, Endian> where Endian: Endianity
[src]
fn unit_length(&self) -> u64
Get the length of the debugging info for this type-unit.
fn length_including_self(&self) -> u64
Get the length of the debugging info for this type-unit, uncluding the byte length of the encoded length itself.
fn version(&self) -> u16
Get the DWARF version of the debugging info for this type-unit.
fn debug_abbrev_offset(&self) -> DebugAbbrevOffset
The offset into the .debug_abbrev
section for this type-unit's
debugging information entries.
fn address_size(&self) -> u8
The size of addresses (in bytes) in this type-unit.
fn type_signature(&self) -> u64
Get the unique type signature for this type unit.
fn type_offset(&self) -> DebugTypesOffset
Get the offset within this type unit where the type is defined.
fn entries<'me, 'abbrev>(&'me self, abbreviations: &'abbrev Abbreviations) -> EntriesCursor<'input, 'abbrev, 'me, Endian>
Navigate this type unit's DebuggingInformationEntry
s.
fn abbreviations(&self, debug_abbrev: DebugAbbrev<Endian>) -> ParseResult<Abbreviations>
Parse this type unit's abbreviations.
use gimli::DebugAbbrev; let unit = get_some_type_unit(); let debug_abbrev = DebugAbbrev::<LittleEndian>::new(read_debug_abbrev_section_somehow()); let abbrevs_for_unit = unit.abbreviations(debug_abbrev).unwrap();
Trait Implementations
impl<'input, Endian: Eq> Eq for TypeUnitHeader<'input, Endian> where Endian: Endianity
[src]
impl<'input, Endian: PartialEq> PartialEq for TypeUnitHeader<'input, Endian> where Endian: Endianity
[src]
fn eq(&self, __arg_0: &TypeUnitHeader<'input, Endian>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TypeUnitHeader<'input, Endian>) -> bool
This method tests for !=
.
impl<'input, Endian: Copy> Copy for TypeUnitHeader<'input, Endian> where Endian: Endianity
[src]
impl<'input, Endian: Clone> Clone for TypeUnitHeader<'input, Endian> where Endian: Endianity
[src]
fn clone(&self) -> TypeUnitHeader<'input, Endian>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more