#[repr(i8)]pub enum RotaryMovement {
Clockwise = 1,
CounterClockwise = -1,
}
Expand description
The movement detected by a rotary quadrature encoder.
Variants§
Trait Implementations§
Source§impl Clone for RotaryMovement
impl Clone for RotaryMovement
Source§fn clone(&self) -> RotaryMovement
fn clone(&self) -> RotaryMovement
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 RotaryMovement
impl Debug for RotaryMovement
Source§impl From<Change> for RotaryMovement
impl From<Change> for RotaryMovement
Source§impl Ord for RotaryMovement
impl Ord for RotaryMovement
Source§fn cmp(&self, other: &RotaryMovement) -> Ordering
fn cmp(&self, other: &RotaryMovement) -> 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 RotaryMovement
impl PartialEq for RotaryMovement
Source§impl PartialOrd for RotaryMovement
impl PartialOrd for RotaryMovement
impl Copy for RotaryMovement
impl Eq for RotaryMovement
impl StructuralPartialEq for RotaryMovement
Auto Trait Implementations§
impl Freeze for RotaryMovement
impl RefUnwindSafe for RotaryMovement
impl Send for RotaryMovement
impl Sync for RotaryMovement
impl Unpin for RotaryMovement
impl UnwindSafe for RotaryMovement
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