#[repr(u8)]pub enum DebounceNumber {
Zero = 0,
One = 1,
Two = 2,
Three = 3,
Four = 4,
Five = 5,
Six = 6,
Seven = 7,
}Expand description
This enum represents the number of debounces see section 5.7 in the MPR121 Data Sheet
Variants§
Trait Implementations§
Source§impl Clone for DebounceNumber
impl Clone for DebounceNumber
Source§fn clone(&self) -> DebounceNumber
fn clone(&self) -> DebounceNumber
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 DebounceNumber
impl Debug for DebounceNumber
Source§impl From<DebounceNumber> for u8
impl From<DebounceNumber> for u8
Source§fn from(enum_value: DebounceNumber) -> Self
fn from(enum_value: DebounceNumber) -> Self
Converts to this type from the input type.
Source§impl Ord for DebounceNumber
impl Ord for DebounceNumber
Source§fn cmp(&self, other: &DebounceNumber) -> Ordering
fn cmp(&self, other: &DebounceNumber) -> Ordering
1.21.0 · 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 DebounceNumber
impl PartialEq for DebounceNumber
Source§impl PartialOrd for DebounceNumber
impl PartialOrd for DebounceNumber
Source§impl TryFrom<u8> for DebounceNumber
impl TryFrom<u8> for DebounceNumber
Source§type Error = TryFromPrimitiveError<DebounceNumber>
type Error = TryFromPrimitiveError<DebounceNumber>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for DebounceNumber
impl TryFromPrimitive for DebounceNumber
const NAME: &'static str = "DebounceNumber"
type Primitive = u8
type Error = TryFromPrimitiveError<DebounceNumber>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for DebounceNumber
impl Eq for DebounceNumber
impl StructuralPartialEq for DebounceNumber
Auto Trait Implementations§
impl Freeze for DebounceNumber
impl RefUnwindSafe for DebounceNumber
impl Send for DebounceNumber
impl Sync for DebounceNumber
impl Unpin for DebounceNumber
impl UnwindSafe for DebounceNumber
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