pub struct SimpleFixture { /* private fields */ }Expand description
A simple fixture that executes closures for setup and teardown.
Useful for quick fixture creation without implementing the trait.
Implementations§
Source§impl SimpleFixture
impl SimpleFixture
Sourcepub fn with_setup<F>(self, f: F) -> Self
pub fn with_setup<F>(self, f: F) -> Self
Set the setup function.
Sourcepub fn with_teardown<F>(self, f: F) -> Self
pub fn with_teardown<F>(self, f: F) -> Self
Set the teardown function.
Sourcepub fn with_priority(self, priority: i32) -> Self
pub fn with_priority(self, priority: i32) -> Self
Set the priority.
Trait Implementations§
Source§impl Debug for SimpleFixture
impl Debug for SimpleFixture
Source§impl Fixture for SimpleFixture
impl Fixture for SimpleFixture
Auto Trait Implementations§
impl Freeze for SimpleFixture
impl !RefUnwindSafe for SimpleFixture
impl Send for SimpleFixture
impl Sync for SimpleFixture
impl Unpin for SimpleFixture
impl UnsafeUnpin for SimpleFixture
impl !UnwindSafe for SimpleFixture
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