pub enum MoveDirection {
Down,
Up,
Back,
Front,
}
Expand description
The directions a robot can move.
A robot cannot strafe to the left or right. In order to move in such directions, it must first turn to face towards or away from that direction instead.
Variants§
Trait Implementations§
Source§impl Clone for MoveDirection
impl Clone for MoveDirection
Source§fn clone(&self) -> MoveDirection
fn clone(&self) -> MoveDirection
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 moreSource§impl Debug for MoveDirection
impl Debug for MoveDirection
Source§impl From<ActionSide> for MoveDirection
impl From<ActionSide> for MoveDirection
Source§fn from(x: ActionSide) -> Self
fn from(x: ActionSide) -> Self
Converts to this type from the input type.
Source§impl From<MoveDirection> for Relative
impl From<MoveDirection> for Relative
Source§fn from(x: MoveDirection) -> Self
fn from(x: MoveDirection) -> Self
Converts to this type from the input type.
Source§impl From<MoveDirection> for u8
impl From<MoveDirection> for u8
Source§fn from(x: MoveDirection) -> Self
fn from(x: MoveDirection) -> Self
Converts to this type from the input type.
Source§impl From<MoveDirection> for usize
impl From<MoveDirection> for usize
Source§fn from(x: MoveDirection) -> Self
fn from(x: MoveDirection) -> Self
Converts to this type from the input type.
Source§impl Hash for MoveDirection
impl Hash for MoveDirection
Source§impl Ord for MoveDirection
impl Ord for MoveDirection
Source§fn cmp(&self, other: &MoveDirection) -> Ordering
fn cmp(&self, other: &MoveDirection) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MoveDirection
impl PartialEq for MoveDirection
Source§impl PartialOrd for MoveDirection
impl PartialOrd for MoveDirection
Source§impl TryFrom<Relative> for MoveDirection
impl TryFrom<Relative> for MoveDirection
Source§type Error = TryFromRelativeSideError
type Error = TryFromRelativeSideError
The type returned in the event of a conversion error.
Source§impl TryFrom<u8> for MoveDirection
impl TryFrom<u8> for MoveDirection
impl Copy for MoveDirection
impl Eq for MoveDirection
impl Side for MoveDirection
impl StructuralPartialEq for MoveDirection
Auto Trait Implementations§
impl Freeze for MoveDirection
impl RefUnwindSafe for MoveDirection
impl Send for MoveDirection
impl Sync for MoveDirection
impl Unpin for MoveDirection
impl UnwindSafe for MoveDirection
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