pub struct Module(/* private fields */);
Expand description
Lazy-locked wrapper for TestModule.
Typically, it’s constructed using the module!() macro. It can also be manually created by passing the result of ModuleBuilder to it.
Implementations§
Source§impl Module
impl Module
Sourcepub const fn new(func: fn() -> TestModule) -> Self
pub const fn new(func: fn() -> TestModule) -> Self
Creates a lazy-locked wrapper over TestModule
Trait Implementations§
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