pub struct Module { /* private fields */ }Expand description
A Muse module.
A module enables encapsulating and namespacing code and declarations.
Implementations§
source§impl Module
impl Module
sourcepub const fn new(parent: Option<Dynamic<Module>>) -> Self
pub const fn new(parent: Option<Dynamic<Module>>) -> Self
Returns a new module whose super is parent.
sourcepub fn with_core(guard: &CollectionGuard<'_>) -> Dynamic<Self>
pub fn with_core(guard: &CollectionGuard<'_>) -> Dynamic<Self>
Returns a new module with the built-in core module loaded.
Trait Implementations§
source§impl CustomType for Module
impl CustomType for Module
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