#[repr(C, u8)]pub enum OptionSelectionState {
None,
Some(SelectionState),
}Variants§
None
Some(SelectionState)
Implementations§
Source§impl OptionSelectionState
impl OptionSelectionState
pub fn into_option(self) -> Option<SelectionState>
Source§impl OptionSelectionState
impl OptionSelectionState
pub fn as_option(&self) -> Option<&SelectionState>
pub fn replace(&mut self, value: SelectionState) -> OptionSelectionState
pub fn is_some(&self) -> bool
pub fn is_none(&self) -> bool
pub const fn as_ref(&self) -> Option<&SelectionState>
pub fn as_mut(&mut self) -> Option<&mut SelectionState>
pub fn map<U, F: FnOnce(SelectionState) -> U>(self, f: F) -> Option<U>
pub fn and_then<U, F>(self, f: F) -> Option<U>
Trait Implementations§
Source§impl Clone for OptionSelectionState
impl Clone for OptionSelectionState
Source§fn clone(&self) -> OptionSelectionState
fn clone(&self) -> OptionSelectionState
Returns a duplicate of the value. Read more
1.0.0 · 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 OptionSelectionState
impl Debug for OptionSelectionState
Source§impl Default for OptionSelectionState
impl Default for OptionSelectionState
Source§fn default() -> OptionSelectionState
fn default() -> OptionSelectionState
Returns the “default value” for a type. Read more
Source§impl From<Option<SelectionState>> for OptionSelectionState
impl From<Option<SelectionState>> for OptionSelectionState
Source§fn from(o: Option<SelectionState>) -> OptionSelectionState
fn from(o: Option<SelectionState>) -> OptionSelectionState
Converts to this type from the input type.
Source§impl From<OptionSelectionState> for Option<SelectionState>
impl From<OptionSelectionState> for Option<SelectionState>
Source§fn from(o: OptionSelectionState) -> Option<SelectionState>
fn from(o: OptionSelectionState) -> Option<SelectionState>
Converts to this type from the input type.
Source§impl PartialEq for OptionSelectionState
impl PartialEq for OptionSelectionState
impl StructuralPartialEq for OptionSelectionState
Auto Trait Implementations§
impl Freeze for OptionSelectionState
impl RefUnwindSafe for OptionSelectionState
impl Send for OptionSelectionState
impl Sync for OptionSelectionState
impl Unpin for OptionSelectionState
impl UnwindSafe for OptionSelectionState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more