#[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 fn as_option(&self) -> Option<&ComponentFieldValue>
pub fn replace( &mut self, value: ComponentFieldValue, ) -> OptionComponentFieldValue
pub fn is_some(&self) -> bool
pub fn is_none(&self) -> bool
pub const fn as_ref(&self) -> Option<&ComponentFieldValue>
pub 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.
Source§impl PartialEq for OptionComponentFieldValue
impl PartialEq for OptionComponentFieldValue
Source§fn eq(&self, other: &OptionComponentFieldValue) -> bool
fn eq(&self, other: &OptionComponentFieldValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OptionComponentFieldValue
Auto Trait Implementations§
impl Freeze for OptionComponentFieldValue
impl RefUnwindSafe for OptionComponentFieldValue
impl !Send for OptionComponentFieldValue
impl !Sync 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