pub enum EmptyOption<T> {
Some(T),
None {},
}Variants§
Implementations§
Source§impl<T> EmptyOption<T>
impl<T> EmptyOption<T>
Trait Implementations§
Source§impl<T: Debug> Debug for EmptyOption<T>
impl<T: Debug> Debug for EmptyOption<T>
Source§impl<'de, T> Deserialize<'de> for EmptyOption<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for EmptyOption<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> From<EmptyOption<T>> for Option<T>
impl<T> From<EmptyOption<T>> for Option<T>
Source§fn from(empty_option: EmptyOption<T>) -> Option<T>
fn from(empty_option: EmptyOption<T>) -> Option<T>
Converts to this type from the input type.
Source§impl<T> From<Option<T>> for EmptyOption<T>
impl<T> From<Option<T>> for EmptyOption<T>
Source§fn from(option: Option<T>) -> EmptyOption<T>
fn from(option: Option<T>) -> EmptyOption<T>
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for EmptyOption<T>where
T: Freeze,
impl<T> RefUnwindSafe for EmptyOption<T>where
T: RefUnwindSafe,
impl<T> Send for EmptyOption<T>where
T: Send,
impl<T> Sync for EmptyOption<T>where
T: Sync,
impl<T> Unpin for EmptyOption<T>where
T: Unpin,
impl<T> UnwindSafe for EmptyOption<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