#[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 PartialOrd for Change
impl PartialOrd for Change
impl 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