pub struct Module { /* private fields */ }
Implementations§
Source§impl Module
impl Module
pub fn new() -> Self
pub fn with_children(children: HashMap<String, Module>) -> Self
pub fn add_child( &mut self, name: String, module: Module, ) -> Result<(), ModuleError>
pub fn get_module_for(&self, path: &PathIdent) -> Result<&Module, ModuleError>
pub fn get_module_for_mut( &mut self, path: &PathIdent, ) -> Result<&mut Module, ModuleError>
pub fn children_iter(&mut self) -> impl Iterator<Item = (String, Module)>
pub fn add_module( &mut self, path: &PathIdent, module: Module, ) -> Result<(), ModuleError>
pub fn take_functions(&mut self) -> Result<Vec<PFunction>, ModuleError>
pub fn add_function(&mut self, func: PFunction) -> Result<(), ModuleError>
pub fn take_structs(&mut self) -> Result<Vec<Struct>, ModuleError>
pub fn add_struct(&mut self, item: Struct) -> Result<(), ModuleError>
pub fn take_bundles(&mut self) -> Result<Vec<Bundle>, ModuleError>
pub fn add_bundle(&mut self, item: Bundle) -> Result<(), ModuleError>
pub fn take_extensions(&mut self) -> Result<Vec<Extension>, ModuleError>
pub fn add_extension(&mut self, item: Extension) -> 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