pub struct ModuleBuilder<'func> { /* private fields */ }
Implementations§
Source§impl<'func> ModuleBuilder<'func>
impl<'func> ModuleBuilder<'func>
pub fn build(self) -> Module
pub fn using_fixture_dir(self) -> Self
pub fn base_temp_dir<P>(self, dir: &P) -> Self
pub fn using_temp_dir(self) -> Self
pub fn setup(self, func: impl FnOnce(&mut Module) + 'func) -> Self
pub fn teardown_static(self, func: extern "C" fn()) -> Self
pub fn nonstatic(self) -> Self
Trait Implementations§
Source§impl<'func> TestableBuilder for ModuleBuilder<'func>
impl<'func> TestableBuilder for ModuleBuilder<'func>
fn import_fixture_dir(self, namepath: &Namepath) -> Self
Auto Trait Implementations§
impl<'func> Freeze for ModuleBuilder<'func>
impl<'func> !RefUnwindSafe for ModuleBuilder<'func>
impl<'func> !Send for ModuleBuilder<'func>
impl<'func> !Sync for ModuleBuilder<'func>
impl<'func> Unpin for ModuleBuilder<'func>
impl<'func> !UnwindSafe for ModuleBuilder<'func>
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