#[repr(C)]pub enum PamojaStepDirection {
Forward = 0,
Backward = 1,
}Expand description
Which way to step a motor.
Variants§
Forward = 0
Advance the sequence, turning the shaft one way.
Backward = 1
Reverse the sequence, turning the shaft the other way.
Trait Implementations§
Source§impl Clone for PamojaStepDirection
impl Clone for PamojaStepDirection
Source§fn clone(&self) -> PamojaStepDirection
fn clone(&self) -> PamojaStepDirection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PamojaStepDirection
Source§impl Debug for PamojaStepDirection
impl Debug for PamojaStepDirection
impl Eq for PamojaStepDirection
Source§impl From<PamojaStepDirection> for Direction
impl From<PamojaStepDirection> for Direction
Source§fn from(value: PamojaStepDirection) -> Self
fn from(value: PamojaStepDirection) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PamojaStepDirection
impl PartialEq for PamojaStepDirection
Source§fn eq(&self, other: &PamojaStepDirection) -> bool
fn eq(&self, other: &PamojaStepDirection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PamojaStepDirection
Auto Trait Implementations§
impl Freeze for PamojaStepDirection
impl RefUnwindSafe for PamojaStepDirection
impl Send for PamojaStepDirection
impl Sync for PamojaStepDirection
impl Unpin for PamojaStepDirection
impl UnsafeUnpin for PamojaStepDirection
impl UnwindSafe for PamojaStepDirection
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