[go: up one dir, main page]

Struct gimli::TypeUnit [] [src]

pub struct TypeUnit<'input, Endian> where Endian: Endianity {
    // some fields omitted
}

The header of a type unit's debugging information.

Methods

impl<'input, Endian> TypeUnit<'input, Endian> where Endian: Endianity
[src]

fn new(header: CompilationUnit<'input, Endian>, type_signature: u64, type_offset: DebugTypesOffset) -> TypeUnit<'input, Endian>

Construct a new TypeUnit.

fn unit_length(&self) -> u64

Get the length of the debugging info for this compilation unit.

fn version(&self) -> u16

Get the DWARF version of the debugging info for this compilation unit.

fn debug_abbrev_offset(&self) -> DebugAbbrevOffset

The offset into the .debug_abbrev section for this compilation unit's debugging information entries.

fn address_size(&self) -> u8

The size of addresses (in bytes) in this compilation 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.

Trait Implementations

impl<'input, Endian: Eq> Eq for TypeUnit<'input, Endian> where Endian: Endianity
[src]

impl<'input, Endian: PartialEq> PartialEq for TypeUnit<'input, Endian> where Endian: Endianity
[src]

fn eq(&self, __arg_0: &TypeUnit<'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: &TypeUnit<'input, Endian>) -> bool

This method tests for !=.

impl<'input, Endian: Copy> Copy for TypeUnit<'input, Endian> where Endian: Endianity
[src]

impl<'input, Endian: Clone> Clone for TypeUnit<'input, Endian> where Endian: Endianity
[src]

fn clone(&self) -> TypeUnit<'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

impl<'input, Endian: Debug> Debug for TypeUnit<'input, Endian> where Endian: Endianity
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.