pub enum FixtureSupport<T> {
Supported(T),
Unsupported,
}Expand description
Distinguishes a supported fixture probe from one the fixture cannot offer.
§Type Parameters
T- Value returned when the fixture supports the probe.
§Examples
use qubit_fs_testkit::FixtureSupport;
let supported = FixtureSupport::Supported(7_u32);
assert_eq!(supported, FixtureSupport::Supported(7));
assert_eq!(FixtureSupport::<u32>::Unsupported, FixtureSupport::Unsupported);Variants§
Supported(T)
The fixture supplied the requested provider-specific value.
Tuple Fields
§
0: TProvider-specific value supplied for this supported probe.
Unsupported
The fixture cannot supply this optional probe.
Trait Implementations§
Source§impl<T: Clone> Clone for FixtureSupport<T>
impl<T: Clone> Clone for FixtureSupport<T>
Source§impl<T: Debug> Debug for FixtureSupport<T>
impl<T: Debug> Debug for FixtureSupport<T>
impl<T: Eq> Eq for FixtureSupport<T>
Source§impl<T: PartialEq> PartialEq for FixtureSupport<T>
impl<T: PartialEq> PartialEq for FixtureSupport<T>
impl<T: PartialEq> StructuralPartialEq for FixtureSupport<T>
Auto Trait Implementations§
impl<T> Forget for FixtureSupport<T>
impl<T> Freeze for FixtureSupport<T>where
T: Freeze,
impl<T> Move for FixtureSupport<T>
impl<T> RefUnwindSafe for FixtureSupport<T>where
T: RefUnwindSafe,
impl<T> Send for FixtureSupport<T>where
T: Send,
impl<T> Sync for FixtureSupport<T>where
T: Sync,
impl<T> Unpin for FixtureSupport<T>where
T: Unpin,
impl<T> UnsafeUnpin for FixtureSupport<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for FixtureSupport<T>where
T: UnwindSafe,
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