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§fn clone(&self) -> OptionSurrogate<T>
fn clone(&self) -> OptionSurrogate<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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>where
T: Freeze,
impl<T> RefUnwindSafe for OptionSurrogate<T>where
T: RefUnwindSafe,
impl<T> Send for OptionSurrogate<T>where
T: Send,
impl<T> Sync for OptionSurrogate<T>where
T: Sync,
impl<T> Unpin for OptionSurrogate<T>where
T: Unpin,
impl<T> UnsafeUnpin for OptionSurrogate<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for OptionSurrogate<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