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