Enum quadrature_decoder::Change
source · #[repr(i8)]pub enum Change {
Positive = 1,
Negative = -1,
}Expand description
The change detected by a quadrature decoder.
Variants§
Positive = 1
Channel A leads channel B, commonly describing a forwards change.
Negative = -1
Channel B leads channel A, commonly describing a backwards change.
Trait Implementations§
source§impl Ord for Change
impl Ord for Change
source§impl PartialEq for Change
impl PartialEq for Change
source§impl PartialOrd for Change
impl PartialOrd for Change
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for Change
impl Eq for Change
impl StructuralPartialEq for Change
Auto Trait Implementations§
impl Freeze for Change
impl RefUnwindSafe for Change
impl Send for Change
impl Sync for Change
impl Unpin for Change
impl UnwindSafe for Change
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