pub struct Module { /* private fields */ }
Implementations§
Source§impl Module
impl Module
pub fn new(env: Environment) -> Self
pub fn with_children( env: Environment, children: HashMap<String, Module>, ) -> Self
pub fn env(&self) -> &Environment
pub fn env_mut(&mut self) -> &mut Environment
pub fn add_child( &mut self, name: String, module: Module, ) -> Result<(), ModuleError>
pub fn get_module(&self, path: &PathIdent) -> Result<&Module, ModuleError>
pub fn get_module_mut( &mut self, path: &PathIdent, ) -> Result<&mut Module, ModuleError>
pub fn add_module( &mut self, path: &PathIdent, module: Module, ) -> Result<(), ModuleError>
Auto Trait Implementations§
impl Freeze for Module
impl !RefUnwindSafe for Module
impl !Send for Module
impl !Sync for Module
impl Unpin for Module
impl !UnwindSafe for Module
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