Struct dwarf::CompilationUnit
[−]
[src]
pub struct CompilationUnit<'a> { pub offset: usize, pub endian: Endian, pub version: u16, pub address_size: u8, pub offset_size: u8, pub abbrev_offset: u64, pub data: Cow<'a, [u8]>, }
Fields
offset: usize
endian: Endian
version: u16
address_size: u8
offset_size: u8
abbrev_offset: u64
data: Cow<'a, [u8]>
Methods
impl<'a> CompilationUnit<'a>
[src]
fn read(
r: &mut &'a [u8],
offset: usize,
endian: Endian
) -> Result<CompilationUnit<'a>, ReadError>
r: &mut &'a [u8],
offset: usize,
endian: Endian
) -> Result<CompilationUnit<'a>, ReadError>
fn abbrev(&self, debug_abbrev: &[u8]) -> Result<AbbrevHash, ReadError>
fn entries(&'a self, abbrev: &'a AbbrevHash) -> DieCursor<'a, 'a, 'a>
fn entry(
&'a self,
offset: usize,
abbrev: &'a AbbrevHash
) -> Option<DieCursor<'a, 'a, 'a>>
&'a self,
offset: usize,
abbrev: &'a AbbrevHash
) -> Option<DieCursor<'a, 'a, 'a>>
impl<'a> CompilationUnit<'a>
[src]
fn write<W: Write>(&self, w: &mut W) -> Result<(), WriteError>
impl<'a> CompilationUnit<'a>
[src]
Trait Implementations
impl<'a> Debug for CompilationUnit<'a>
[src]
impl<'a> PartialEq for CompilationUnit<'a>
[src]
fn eq(&self, __arg_0: &CompilationUnit<'a>) -> 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>) -> bool
This method tests for !=
.