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