#[repr(C, u8)]pub enum OptionComponentFieldNamedValue {
None,
Some(ComponentFieldNamedValue),
}Variants§
None
Some(ComponentFieldNamedValue)
Implementations§
Source§impl OptionComponentFieldNamedValue
impl OptionComponentFieldNamedValue
pub fn into_option(&self) -> Option<ComponentFieldNamedValue>
Source§impl OptionComponentFieldNamedValue
impl OptionComponentFieldNamedValue
pub fn as_option(&self) -> Option<&ComponentFieldNamedValue>
pub fn replace( &mut self, value: ComponentFieldNamedValue, ) -> OptionComponentFieldNamedValue
pub fn is_some(&self) -> bool
pub fn is_none(&self) -> bool
pub const fn as_ref(&self) -> Option<&ComponentFieldNamedValue>
pub fn as_mut(&mut self) -> Option<&mut ComponentFieldNamedValue>
pub fn map<U, F: FnOnce(ComponentFieldNamedValue) -> U>(self, f: F) -> Option<U>
pub fn and_then<U, F>(self, f: F) -> Option<U>
Trait Implementations§
Source§impl Clone for OptionComponentFieldNamedValue
impl Clone for OptionComponentFieldNamedValue
Source§fn clone(&self) -> OptionComponentFieldNamedValue
fn clone(&self) -> OptionComponentFieldNamedValue
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 Default for OptionComponentFieldNamedValue
impl Default for OptionComponentFieldNamedValue
Source§fn default() -> OptionComponentFieldNamedValue
fn default() -> OptionComponentFieldNamedValue
Returns the “default value” for a type. Read more
Source§impl From<Option<ComponentFieldNamedValue>> for OptionComponentFieldNamedValue
impl From<Option<ComponentFieldNamedValue>> for OptionComponentFieldNamedValue
Source§fn from(o: Option<ComponentFieldNamedValue>) -> OptionComponentFieldNamedValue
fn from(o: Option<ComponentFieldNamedValue>) -> OptionComponentFieldNamedValue
Converts to this type from the input type.
Source§impl From<OptionComponentFieldNamedValue> for Option<ComponentFieldNamedValue>
impl From<OptionComponentFieldNamedValue> for Option<ComponentFieldNamedValue>
Source§fn from(o: OptionComponentFieldNamedValue) -> Option<ComponentFieldNamedValue>
fn from(o: OptionComponentFieldNamedValue) -> Option<ComponentFieldNamedValue>
Converts to this type from the input type.
Source§impl PartialEq for OptionComponentFieldNamedValue
impl PartialEq for OptionComponentFieldNamedValue
Source§fn eq(&self, other: &OptionComponentFieldNamedValue) -> bool
fn eq(&self, other: &OptionComponentFieldNamedValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OptionComponentFieldNamedValue
Auto Trait Implementations§
impl Freeze for OptionComponentFieldNamedValue
impl RefUnwindSafe for OptionComponentFieldNamedValue
impl !Send for OptionComponentFieldNamedValue
impl !Sync for OptionComponentFieldNamedValue
impl Unpin for OptionComponentFieldNamedValue
impl UnsafeUnpin for OptionComponentFieldNamedValue
impl UnwindSafe for OptionComponentFieldNamedValue
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