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§
Source§impl<'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> Freeze for ModuleInfo<'s>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more