pub enum Empty<T> {
Some(T),
None,
}
Expand description
A Wrapper for empty inputs returning a None
Variants§
Trait Implementations§
Source§impl<T: Ord> Ord for Empty<T>
impl<T: Ord> Ord for Empty<T>
Source§impl<T: PartialOrd> PartialOrd for Empty<T>
impl<T: PartialOrd> PartialOrd for Empty<T>
impl<T: Copy> Copy for Empty<T>
impl<T: Eq> Eq for Empty<T>
impl<T> StructuralPartialEq for Empty<T>
Auto Trait Implementations§
impl<T> Freeze for Empty<T>where
T: Freeze,
impl<T> RefUnwindSafe for Empty<T>where
T: RefUnwindSafe,
impl<T> Send for Empty<T>where
T: Send,
impl<T> Sync for Empty<T>where
T: Sync,
impl<T> Unpin for Empty<T>where
T: Unpin,
impl<T> UnwindSafe for Empty<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