pub struct Nilable<T>(pub Option<T>);Expand description
We can’t implement TryFrom<Value> for Option<T>’s, you can use this wrapper in functions to
take an optional value
Tuple Fields§
§0: Option<T>Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Nilable<T>where
T: Freeze,
impl<T> RefUnwindSafe for Nilable<T>where
T: RefUnwindSafe,
impl<T> Send for Nilable<T>where
T: Send,
impl<T> Sync for Nilable<T>where
T: Sync,
impl<T> Unpin for Nilable<T>where
T: Unpin,
impl<T> UnwindSafe for Nilable<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