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