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