pub struct OptionSurrogate<T>(/* private fields */);Implementations§
Source§impl<T> OptionSurrogate<T>
impl<T> OptionSurrogate<T>
pub fn none() -> Self
pub fn is_some(&self) -> BoolSurrogate
pub fn is_none(&self) -> BoolSurrogate
Source§impl<T> OptionSurrogate<T>where
T: Surrogated,
impl<T> OptionSurrogate<T>where
T: Surrogated,
Trait Implementations§
Source§impl<T: Clone> Clone for OptionSurrogate<T>
impl<T: Clone> Clone for OptionSurrogate<T>
Source§impl<T: Debug> Debug for OptionSurrogate<T>
impl<T: Debug> Debug for OptionSurrogate<T>
Source§impl<'de, T> Deserialize<'de> for OptionSurrogate<T>
impl<'de, T> Deserialize<'de> for OptionSurrogate<T>
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> RefCast for OptionSurrogate<T>
impl<T> RefCast for OptionSurrogate<T>
Source§impl<T> Serialize for OptionSurrogate<T>
impl<T> Serialize for OptionSurrogate<T>
Source§impl<T> Surrogate for OptionSurrogate<T>
impl<T> Surrogate for OptionSurrogate<T>
Source§impl<'__lifetime, T> Surrogate for &'__lifetime OptionSurrogate<T>
impl<'__lifetime, T> Surrogate for &'__lifetime OptionSurrogate<T>
Auto Trait Implementations§
impl<T> Freeze for OptionSurrogate<T>
impl<T> RefUnwindSafe for OptionSurrogate<T>where
Option<T>: RefUnwindSafe,
impl<T> Send for OptionSurrogate<T>
impl<T> Sync for OptionSurrogate<T>
impl<T> Unpin for OptionSurrogate<T>
impl<T> UnsafeUnpin for OptionSurrogate<T>where
Option<T>: UnsafeUnpin,
impl<T> UnwindSafe for OptionSurrogate<T>where
Option<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