pub enum Check<T, M> {
None,
Some(T),
Maybe(M),
}Expand description
Token Level Return
- Some: It’s the requested thing
- None: It can’t be the requested thing
- Maybe: It can be the requested thing, but something is missing
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<T, M> Freeze for Check<T, M>
impl<T, M> RefUnwindSafe for Check<T, M>where
T: RefUnwindSafe,
M: RefUnwindSafe,
impl<T, M> Send for Check<T, M>
impl<T, M> Sync for Check<T, M>
impl<T, M> Unpin for Check<T, M>
impl<T, M> UnwindSafe for Check<T, M>where
T: UnwindSafe,
M: 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