#[repr(i8)]pub enum Direction {
Clockwise = 1,
CounterClockwise = -1,
}Expand description
The direction to make the robot go forward
Variants§
Clockwise = 1
Motor needs to turn clockwise to move forward
CounterClockwise = -1
Motor needs to turn counter-clockwise to move forward
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Direction
impl RefUnwindSafe for Direction
impl Send for Direction
impl Sync for Direction
impl Unpin for Direction
impl UnwindSafe for Direction
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