Struct gimli::DebugTypes
[−]
[src]
pub struct DebugTypes<'input, Endian> where Endian: Endianity {
// some fields omitted
}
The DebugTypes
struct represents the DWARF type information
found in the .debug_types
section.
Methods
impl<'input, Endian> DebugTypes<'input, Endian> where Endian: Endianity
[src]
fn new(debug_types_section: &'input [u8]) -> DebugTypes<'input, Endian>
Construct 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::<LittleEndian>::new(read_debug_types_section_somehow());
fn units(&self) -> TypeUnitHeadersIter<'input, Endian>
Iterate the type-units in this .debug_types
section.
use gimli::{DebugTypes, LittleEndian}; let debug_types = DebugTypes::<LittleEndian>::new(read_debug_types_section_somehow()); for parse_result in debug_types.units() { let unit = parse_result.unwrap(); println!("unit's length is {}", unit.unit_length()); }
Trait Implementations
impl<'input, Endian: Copy> Copy for DebugTypes<'input, Endian> where Endian: Endianity
[src]
impl<'input, Endian: Clone> Clone for DebugTypes<'input, Endian> where Endian: Endianity
[src]
fn clone(&self) -> DebugTypes<'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