Enum oc_wasm_opencomputers::robot::MoveDirection  
source · [−]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
Down
Up
Back
Front
Trait Implementations
sourceimpl Clone for MoveDirection
 
impl Clone for MoveDirection
sourcefn clone(&self) -> MoveDirection
 
fn clone(&self) -> MoveDirection
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for MoveDirection
 
impl Debug for MoveDirection
sourceimpl From<ActionSide> for MoveDirection
 
impl From<ActionSide> for MoveDirection
sourcefn from(x: ActionSide) -> Self
 
fn from(x: ActionSide) -> Self
Converts to this type from the input type.
sourceimpl From<MoveDirection> for u8
 
impl From<MoveDirection> for u8
sourcefn from(x: MoveDirection) -> Self
 
fn from(x: MoveDirection) -> Self
Converts to this type from the input type.
sourceimpl From<MoveDirection> for usize
 
impl From<MoveDirection> for usize
sourcefn from(x: MoveDirection) -> Self
 
fn from(x: MoveDirection) -> Self
Converts to this type from the input type.
sourceimpl From<MoveDirection> for RelativeSide
 
impl From<MoveDirection> for RelativeSide
sourcefn from(x: MoveDirection) -> Self
 
fn from(x: MoveDirection) -> Self
Converts to this type from the input type.
sourceimpl Hash for MoveDirection
 
impl Hash for MoveDirection
sourceimpl Ord for MoveDirection
 
impl Ord for MoveDirection
sourceimpl PartialEq<MoveDirection> for MoveDirection
 
impl PartialEq<MoveDirection> for MoveDirection
sourceimpl PartialOrd<MoveDirection> for MoveDirection
 
impl PartialOrd<MoveDirection> for MoveDirection
sourcefn partial_cmp(&self, other: &MoveDirection) -> Option<Ordering>
 
fn partial_cmp(&self, other: &MoveDirection) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
 
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl TryFrom<RelativeSide> for MoveDirection
 
impl TryFrom<RelativeSide> for MoveDirection
type Error = TryFromRelativeSideError
type Error = TryFromRelativeSideError
The type returned in the event of a conversion error.
sourcefn try_from(x: RelativeSide) -> Result<Self, Self::Error>
 
fn try_from(x: RelativeSide) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl TryFrom<u8> for MoveDirection
 
impl TryFrom<u8> for MoveDirection
impl Copy for MoveDirection
impl Eq for MoveDirection
impl Side for MoveDirection
impl StructuralEq for MoveDirection
impl StructuralPartialEq for MoveDirection
Auto Trait Implementations
impl RefUnwindSafe for MoveDirection
impl Send for MoveDirection
impl Sync for MoveDirection
impl Unpin for MoveDirection
impl UnwindSafe for MoveDirection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
    T: Clone, 
 
impl<T> ToOwned for T where
    T: Clone, 
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
 
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more