Enum console_utils::input::Empty
source · 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: PartialEq> PartialEq for Empty<T>
impl<T: PartialEq> PartialEq for Empty<T>
source§impl<T: PartialOrd> PartialOrd for Empty<T>
impl<T: PartialOrd> PartialOrd for Empty<T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl<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