Struct gimli::DebugTypes [−][src]
pub struct DebugTypes<R: Reader> { /* fields omitted */ }
The DebugTypes struct represents the DWARF type information
found in the .debug_types section.
Methods
impl<'input, Endian> DebugTypes<EndianSlice<'input, Endian>> where
Endian: Endianity, [src]
impl<'input, Endian> DebugTypes<EndianSlice<'input, Endian>> where
Endian: Endianity, pub fn new(debug_types_section: &'input [u8], endian: Endian) -> Self[src]
pub fn new(debug_types_section: &'input [u8], endian: Endian) -> SelfConstruct a new DebugTypes instance from the data in the .debug_types
section.
It is the caller's responsibility to read the .debug_types section and
present it as a &[u8] slice. That means using some ELF loader on
Linux, a Mach-O loader on OSX, etc.
use gimli::{DebugTypes, LittleEndian}; let debug_types = DebugTypes::new(read_debug_types_section_somehow(), LittleEndian);
impl<R: Reader> DebugTypes<R>[src]
impl<R: Reader> DebugTypes<R>pub fn units(&self) -> TypeUnitHeadersIter<R>[src]
pub fn units(&self) -> TypeUnitHeadersIter<R>Iterate the type-units in this .debug_types section.
use gimli::{DebugTypes, LittleEndian}; let debug_types = DebugTypes::new(read_debug_types_section_somehow(), LittleEndian); let mut iter = debug_types.units(); while let Some(unit) = iter.next().unwrap() { println!("unit's length is {}", unit.unit_length()); }
Can be used with
FallibleIterator.
Trait Implementations
impl<R: Debug + Reader> Debug for DebugTypes<R>[src]
impl<R: Debug + Reader> Debug for DebugTypes<R>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<R: Clone + Reader> Clone for DebugTypes<R>[src]
impl<R: Clone + Reader> Clone for DebugTypes<R>fn clone(&self) -> DebugTypes<R>[src]
fn clone(&self) -> DebugTypes<R>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<R: Copy + Reader> Copy for DebugTypes<R>[src]
impl<R: Copy + Reader> Copy for DebugTypes<R>impl<R: Reader> Section<R> for DebugTypes<R>[src]
impl<R: Reader> Section<R> for DebugTypes<R>fn section_name() -> &'static str[src]
fn section_name() -> &'static strReturns the ELF section name for this type.
impl<R: Reader> From<R> for DebugTypes<R>[src]
impl<R: Reader> From<R> for DebugTypes<R>Auto Trait Implementations
impl<R> Send for DebugTypes<R> where
R: Send,
impl<R> Send for DebugTypes<R> where
R: Send, impl<R> Sync for DebugTypes<R> where
R: Sync,
impl<R> Sync for DebugTypes<R> where
R: Sync,