Struct dwarf::TypeUnit [] [src]

pub struct TypeUnit<'a, E: Endian> {
    pub offset: usize,
    pub type_signature: u64,
    pub type_offset: u64,
    pub common: UnitCommon<'a, E>,
}

Fields

offset: usize type_signature: u64 type_offset: u64 common: UnitCommon<'a, E>

Methods

impl<'a, E: Endian> TypeUnit<'a, E>
[src]

fn read(r: &mut &'a [u8], offset: usize, endian: E) -> Result<TypeUnit<'a, E>, ReadError>

fn abbrev(&self, debug_abbrev: &[u8]) -> Result<AbbrevHashReadError>

fn entries<'cursor>(&'a self, abbrev: &'cursor AbbrevHash) -> DieCursor<'cursor, 'a, 'a, E>

fn entry<'cursor>(&'a self, offset: usize, abbrev: &'cursor AbbrevHash) -> Option<DieCursor<'cursor, 'a, 'a, E>>

fn type_entry<'cursor>(&'a self, abbrev: &'cursor AbbrevHash) -> Option<DieCursor<'cursor, 'a, 'a, E>>

impl<'a, E: Endian> TypeUnit<'a, E>
[src]

fn write<W: Write>(&self, w: &mut W) -> Result<()WriteError>

impl<'a, E: Endian> TypeUnit<'a, E>
[src]

fn data(&'a self) -> &'a [u8]

fn data_offset(&'a self) -> usize

Trait Implementations

impl<'a, E: Eq + Endian> Eq for TypeUnit<'a, E>
[src]

impl<'a, E: PartialEq + Endian> PartialEq for TypeUnit<'a, E>
[src]

fn eq(&self, __arg_0: &TypeUnit<'a, E>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &TypeUnit<'a, E>) -> bool

This method tests for !=.

impl<'a, E: Debug + Endian> Debug for TypeUnit<'a, E>
[src]

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

Formats the value using the given formatter.