pub struct FixtureScope { /* private fields */ }Expand description
A fixture scope for automatic teardown using RAII.
When the scope is dropped, all fixtures are torn down automatically.
Implementations§
Source§impl FixtureScope
impl FixtureScope
Sourcepub fn new(manager: FixtureManager) -> Self
pub fn new(manager: FixtureManager) -> Self
Create a new fixture scope from a manager.
The manager should already have fixtures set up.
Trait Implementations§
Source§impl Debug for FixtureScope
impl Debug for FixtureScope
Auto Trait Implementations§
impl Freeze for FixtureScope
impl !RefUnwindSafe for FixtureScope
impl Send for FixtureScope
impl Sync for FixtureScope
impl Unpin for FixtureScope
impl UnsafeUnpin for FixtureScope
impl !UnwindSafe for FixtureScope
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