#[non_exhaustive]pub enum Cutoff<T: ?Sized> {
Always,
Never,
PartialEq,
Fn(fn(&T, &T) -> bool),
FnBoxed(Box<dyn CutoffClosure<T>>),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Cutoff<T>where
T: ?Sized,
impl<T> !RefUnwindSafe for Cutoff<T>
impl<T> !Send for Cutoff<T>
impl<T> !Sync for Cutoff<T>
impl<T> Unpin for Cutoff<T>where
T: ?Sized,
impl<T> !UnwindSafe for Cutoff<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