Struct pdb::ModuleInfo
source · [−]pub struct ModuleInfo<'s> { /* private fields */ }
Expand description
This struct contains data about a single module from its module info stream.
The module info stream is where private symbols and line info is stored.
Implementations
sourceimpl<'s> ModuleInfo<'s>
impl<'s> ModuleInfo<'s>
sourcepub fn symbols(&self) -> Result<SymbolIter<'_>>
pub fn symbols(&self) -> Result<SymbolIter<'_>>
Get an iterator over the all symbols in this module.
sourcepub fn symbols_at(&self, index: SymbolIndex) -> Result<SymbolIter<'_>>
pub fn symbols_at(&self, index: SymbolIndex) -> Result<SymbolIter<'_>>
Get an iterator over symbols starting at the given index.
sourcepub fn line_program(&self) -> Result<LineProgram<'_>>
pub fn line_program(&self) -> Result<LineProgram<'_>>
Returns a line program that gives access to file and line information in this module.
sourcepub fn inlinees(&self) -> Result<InlineeIterator<'_>>
pub fn inlinees(&self) -> Result<InlineeIterator<'_>>
Returns an iterator over all inlinees in this module.
Inlinees are not guaranteed to be sorted. When requiring random access by ItemId
, collect
them into a mapping structure rather than reiterating multiple times.
sourcepub fn exports(&self) -> Result<CrossModuleExports>
pub fn exports(&self) -> Result<CrossModuleExports>
Returns a table of exports declared by this module.
sourcepub fn imports(&self) -> Result<CrossModuleImports<'_>>
pub fn imports(&self) -> Result<CrossModuleImports<'_>>
Returns a table of imports of this module.
Auto Trait Implementations
impl<'s> !RefUnwindSafe for ModuleInfo<'s>
impl<'s> !Send for ModuleInfo<'s>
impl<'s> !Sync for ModuleInfo<'s>
impl<'s> Unpin for ModuleInfo<'s>
impl<'s> !UnwindSafe for ModuleInfo<'s>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more