pub enum FixtureState<'a> {
Uninitialized(&'a Path),
Fresh(&'a Path),
}Expand description
Indicates the state of a fixture when a closure is called.
Variants§
Uninitialized(&'a Path)
The fixture is newly created and needs post-processing.
The closure should perform any necessary modifications to the fixture directory and compute its return value.
Fresh(&'a Path)
The fixture was already created (cached) and only needs to produce a return value.
The closure should NOT modify the fixture directory, but only compute and return a value based on the existing contents.
Implementations§
Source§impl FixtureState<'_>
impl FixtureState<'_>
Trait Implementations§
Source§impl<'a> Clone for FixtureState<'a>
impl<'a> Clone for FixtureState<'a>
Source§fn clone(&self) -> FixtureState<'a>
fn clone(&self) -> FixtureState<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for FixtureState<'a>
Source§impl<'a> Debug for FixtureState<'a>
impl<'a> Debug for FixtureState<'a>
impl<'a> Eq for FixtureState<'a>
Source§impl<'a> PartialEq for FixtureState<'a>
impl<'a> PartialEq for FixtureState<'a>
impl<'a> StructuralPartialEq for FixtureState<'a>
Auto Trait Implementations§
impl<'a> Freeze for FixtureState<'a>
impl<'a> RefUnwindSafe for FixtureState<'a>
impl<'a> Send for FixtureState<'a>
impl<'a> Sync for FixtureState<'a>
impl<'a> Unpin for FixtureState<'a>
impl<'a> UnsafeUnpin for FixtureState<'a>
impl<'a> UnwindSafe for FixtureState<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.