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