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