Struct symbolic::debuginfo::dwarf::gimli::read::DebugPubTypes [−]
pub struct DebugPubTypes<R>(_)
where
R: Reader;
The DebugPubTypes
struct represents the DWARF public types information
found in the .debug_info
section.
Implementations
impl<'input, Endian> DebugPubTypes<EndianSlice<'input, Endian>> where
Endian: Endianity,
impl<'input, Endian> DebugPubTypes<EndianSlice<'input, Endian>> where
Endian: Endianity,
pub fn new(
debug_pubtypes_section: &'input [u8],
endian: Endian
) -> DebugPubTypes<EndianSlice<'input, Endian>>
debug_pubtypes_section: &'input [u8],
endian: Endian
) -> DebugPubTypes<EndianSlice<'input, Endian>>
Construct a new DebugPubTypes
instance from the data in the .debug_pubtypes
section.
It is the caller’s responsibility to read the .debug_pubtypes
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::{DebugPubTypes, LittleEndian}; let debug_pubtypes = DebugPubTypes::new(read_debug_pubtypes_somehow(), LittleEndian);
impl<R> DebugPubTypes<R> where
R: Reader,
impl<R> DebugPubTypes<R> where
R: Reader,
pub fn items(&self) -> PubTypesEntryIter<R>
Iterate the pubtypes in the .debug_pubtypes
section.
use gimli::{DebugPubTypes, EndianSlice, LittleEndian}; let debug_pubtypes = DebugPubTypes::new(read_debug_pubtypes_section_somehow(), LittleEndian); let mut iter = debug_pubtypes.items(); while let Some(pubtype) = iter.next().unwrap() { println!("pubtype {} found!", pubtype.name().to_string_lossy()); }
Trait Implementations
impl<R> Clone for DebugPubTypes<R> where
R: Clone + Reader,
impl<R> Clone for DebugPubTypes<R> where
R: Clone + Reader,
pub fn clone(&self) -> DebugPubTypes<R>
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<R> Debug for DebugPubTypes<R> where
R: Debug + Reader,
impl<R> Debug for DebugPubTypes<R> where
R: Debug + Reader,
impl<R> From<R> for DebugPubTypes<R> where
R: Reader,
impl<R> From<R> for DebugPubTypes<R> where
R: Reader,
pub fn from(debug_pubtypes_section: R) -> DebugPubTypes<R>
impl<R> Section<R> for DebugPubTypes<R> where
R: Reader,
impl<R> Section<R> for DebugPubTypes<R> where
R: Reader,
pub fn id() -> SectionId
pub fn reader(&self) -> &R
pub fn section_name() -> &'static str
pub fn dwo_section_name() -> Option<&'static str>
pub fn load<F, E>(f: F) -> Result<Self, E> where
F: FnOnce(SectionId) -> Result<R, E>,
F: FnOnce(SectionId) -> Result<R, E>,
pub fn lookup_offset_id(
&self,
id: ReaderOffsetId
) -> Option<(SectionId, <R as Reader>::Offset)> where
R: Reader,
&self,
id: ReaderOffsetId
) -> Option<(SectionId, <R as Reader>::Offset)> where
R: Reader,
Auto Trait Implementations
impl<R> RefUnwindSafe for DebugPubTypes<R> where
R: RefUnwindSafe,
<R as Reader>::Offset: RefUnwindSafe,
impl<R> RefUnwindSafe for DebugPubTypes<R> where
R: RefUnwindSafe,
<R as Reader>::Offset: RefUnwindSafe,
impl<R> UnwindSafe for DebugPubTypes<R> where
R: UnwindSafe,
<R as Reader>::Offset: UnwindSafe,
impl<R> UnwindSafe for DebugPubTypes<R> where
R: UnwindSafe,
<R as Reader>::Offset: UnwindSafe,