#[repr(C, u8)]pub enum OptionComponentDataField {
None,
Some(ComponentDataField),
}Variants§
None
Some(ComponentDataField)
Implementations§
Source§impl OptionComponentDataField
impl OptionComponentDataField
pub fn into_option(&self) -> Option<ComponentDataField>
Source§impl OptionComponentDataField
impl OptionComponentDataField
pub const fn as_option(&self) -> Option<&ComponentDataField>
pub const fn replace( &mut self, value: ComponentDataField, ) -> OptionComponentDataField
pub const fn is_some(&self) -> bool
pub const fn is_none(&self) -> bool
pub const fn as_ref(&self) -> Option<&ComponentDataField>
pub const fn as_mut(&mut self) -> Option<&mut ComponentDataField>
pub fn map<U, F>(self, f: F) -> Option<U>where
F: FnOnce(ComponentDataField) -> U,
pub fn and_then<U, F>(self, f: F) -> Option<U>
Trait Implementations§
Source§impl Clone for OptionComponentDataField
impl Clone for OptionComponentDataField
Source§fn clone(&self) -> OptionComponentDataField
fn clone(&self) -> OptionComponentDataField
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 Debug for OptionComponentDataField
impl Debug for OptionComponentDataField
Source§impl Default for OptionComponentDataField
impl Default for OptionComponentDataField
Source§fn default() -> OptionComponentDataField
fn default() -> OptionComponentDataField
Returns the “default value” for a type. Read more
Source§impl From<Option<ComponentDataField>> for OptionComponentDataField
impl From<Option<ComponentDataField>> for OptionComponentDataField
Source§fn from(o: Option<ComponentDataField>) -> OptionComponentDataField
fn from(o: Option<ComponentDataField>) -> OptionComponentDataField
Converts to this type from the input type.
Source§impl PartialEq for OptionComponentDataField
impl PartialEq for OptionComponentDataField
impl StructuralPartialEq for OptionComponentDataField
Auto Trait Implementations§
impl !Send for OptionComponentDataField
impl !Sync for OptionComponentDataField
impl Freeze for OptionComponentDataField
impl RefUnwindSafe for OptionComponentDataField
impl Unpin for OptionComponentDataField
impl UnsafeUnpin for OptionComponentDataField
impl UnwindSafe for OptionComponentDataField
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more