Enum reflectapi::Option
source · pub enum Option<T> {
Undefined,
None,
Some(T),
}
Variants§
Implementations§
source§impl<T> Option<T>
impl<T> Option<T>
pub fn is_undefined(&self) -> bool
pub fn is_none(&self) -> bool
pub fn is_none_or_undefined(&self) -> bool
pub fn is_some(&self) -> bool
pub fn as_ref(&self) -> Option<&T>
pub fn as_option(&self) -> Option<&T>
pub fn unfold(&self) -> Option<Option<&T>>
pub fn fold(source: Option<Option<T>>) -> Self
Trait Implementations§
source§impl<'de, T: Deserialize<'de>> Deserialize<'de> for Option<T>
impl<'de, T: Deserialize<'de>> Deserialize<'de> for Option<T>
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl<T: Input> Input for Option<T>
impl<T: Input> Input for Option<T>
fn reflectapi_input_type(schema: &mut Typespace) -> TypeReference
source§impl<T: Output> Output for Option<T>
impl<T: Output> Output for Option<T>
fn reflectapi_output_type(schema: &mut Typespace) -> TypeReference
source§impl<T: PartialEq> PartialEq for Option<T>
impl<T: PartialEq> PartialEq for Option<T>
impl<T: Eq> Eq for Option<T>
impl<T> StructuralPartialEq for Option<T>
Auto Trait Implementations§
impl<T> Freeze for Option<T>where
T: Freeze,
impl<T> RefUnwindSafe for Option<T>where
T: RefUnwindSafe,
impl<T> Send for Option<T>where
T: Send,
impl<T> Sync for Option<T>where
T: Sync,
impl<T> Unpin for Option<T>where
T: Unpin,
impl<T> UnwindSafe for Option<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