Enum mma8x5x::DebounceCounterMode
source · [−]pub enum DebounceCounterMode {
Decrement,
Clear,
}
Expand description
Portrait/landscape debounce counter mode
Variants
Decrement
Decrements debounce whenever the condition of interest is no longer valid.
Clear
Clears the counter whenever the condition of interest is no longer valid. (default)
Trait Implementations
sourceimpl Clone for DebounceCounterMode
impl Clone for DebounceCounterMode
sourcefn clone(&self) -> DebounceCounterMode
fn clone(&self) -> DebounceCounterMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DebounceCounterMode
impl Debug for DebounceCounterMode
sourceimpl PartialEq<DebounceCounterMode> for DebounceCounterMode
impl PartialEq<DebounceCounterMode> for DebounceCounterMode
sourcefn eq(&self, other: &DebounceCounterMode) -> bool
fn eq(&self, other: &DebounceCounterMode) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for DebounceCounterMode
impl Eq for DebounceCounterMode
impl StructuralEq for DebounceCounterMode
impl StructuralPartialEq for DebounceCounterMode
Auto Trait Implementations
impl RefUnwindSafe for DebounceCounterMode
impl Send for DebounceCounterMode
impl Sync for DebounceCounterMode
impl Unpin for DebounceCounterMode
impl UnwindSafe for DebounceCounterMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more