pub struct MotorMovement {
pub direction: MotorDirection,
pub steps: StepCount,
pub group: MotorGroup,
}Expand description
Motor movement specification
Fields§
§direction: MotorDirection§steps: StepCount§group: MotorGroupImplementations§
Source§impl MotorMovement
impl MotorMovement
pub fn new( direction: MotorDirection, steps: StepCount, group: MotorGroup, ) -> MotorMovement
Trait Implementations§
Source§impl Clone for MotorMovement
impl Clone for MotorMovement
Source§fn clone(&self) -> MotorMovement
fn clone(&self) -> MotorMovement
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 moreAuto Trait Implementations§
impl Freeze for MotorMovement
impl RefUnwindSafe for MotorMovement
impl Send for MotorMovement
impl Sync for MotorMovement
impl Unpin for MotorMovement
impl UnwindSafe for MotorMovement
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