pub enum GreaseOr<T> {
Grease,
T(T),
}
Expand description
An enum representing either a valid value of type T
or a GREASE (Generate Random Extensions And Sustain Extensibility) placeholder.
Variants§
Grease
A GREASE placeholder value, which will be generated randomly per session.
T(T)
A valid value of the generic type T
.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for GreaseOr<T>where
T: Freeze,
impl<T> RefUnwindSafe for GreaseOr<T>where
T: RefUnwindSafe,
impl<T> Send for GreaseOr<T>where
T: Send,
impl<T> Sync for GreaseOr<T>where
T: Sync,
impl<T> Unpin for GreaseOr<T>where
T: Unpin,
impl<T> UnwindSafe for GreaseOr<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