pub struct ErasedModule {
pub name: String,
pub decls: Vec<ErasedDecl>,
}Expand description
A collection of erased declarations forming a module.
Fields§
§name: String§decls: Vec<ErasedDecl>Implementations§
Source§impl ErasedModule
impl ErasedModule
Sourcepub fn add(&mut self, decl: ErasedDecl)
pub fn add(&mut self, decl: ErasedDecl)
Add a declaration.
Sourcepub fn find(&self, name: &str) -> Option<&ErasedDecl>
pub fn find(&self, name: &str) -> Option<&ErasedDecl>
Find a declaration by name.
Sourcepub fn function_names(&self) -> Vec<&str>
pub fn function_names(&self) -> Vec<&str>
Return all function names.
Auto Trait Implementations§
impl Freeze for ErasedModule
impl RefUnwindSafe for ErasedModule
impl Send for ErasedModule
impl Sync for ErasedModule
impl Unpin for ErasedModule
impl UnsafeUnpin for ErasedModule
impl UnwindSafe for ErasedModule
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