Struct dwarf::CompilationUnit [] [src]

pub struct CompilationUnit<'a, E: Endian> {
    pub offset: usize,
    pub common: UnitCommon<'a, E>,
}

Fields

offset: usize common: UnitCommon<'a, E>

Methods

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

fn read(r: &mut &'a [u8], offset: usize, endian: E) -> Result<CompilationUnit<'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>>

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

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

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

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

fn data_offset(&'a self) -> usize

Trait Implementations

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

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

fn eq(&self, __arg_0: &CompilationUnit<'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: &CompilationUnit<'a, E>) -> bool

This method tests for !=.

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

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

Formats the value using the given formatter.

impl<'a, E: Endian + Default> Default for CompilationUnit<'a, E>
[src]

fn default() -> Self

Returns the "default value" for a type. Read more