pub struct Modules { /* private fields */ }
Implementations§
Source§impl Modules
impl Modules
pub fn new() -> Self
pub fn modules(&self) -> &SeqMap<Vec<String>, ModuleRef>
pub fn contains_key(&self, module_path: &[String]) -> bool
pub fn add(&mut self, module: ModuleRef)
pub fn link_module( &mut self, module_path: &[String], referred_module: ModuleRef, )
pub fn get(&self, module_path: &[String]) -> Option<&ModuleRef>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Modules
impl RefUnwindSafe for Modules
impl !Send for Modules
impl !Sync for Modules
impl Unpin for Modules
impl UnwindSafe for Modules
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