pub enum FixtureRef<'a, T> {
Shared(&'a T),
Borrowed(Ref<'a, T>),
}Expand description
Borrowed fixture reference that keeps any underlying RefCell borrow alive
for the duration of a step.
Variants§
Reference bound directly to a shared fixture.
Borrowed(Ref<'a, T>)
Borrow guard taken from a backing RefCell.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for FixtureRef<'a, T>
impl<'a, T> !RefUnwindSafe for FixtureRef<'a, T>
impl<'a, T> !Send for FixtureRef<'a, T>
impl<'a, T> !Sync for FixtureRef<'a, T>
impl<'a, T> Unpin for FixtureRef<'a, T>
impl<'a, T> !UnwindSafe for FixtureRef<'a, T>
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