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