Enum oc_wasm_opencomputers::robot::ActionSide  
source · [−]pub enum ActionSide {
    Bottom,
    Top,
    Front,
}Expand description
The sides on which a robot can manipulate blocks.
A robot cannot manipulate blocks to its left or right sides or behind it. In order to manipulate such blocks, it must first turn to face that direction instead.
Variants
Bottom
Top
Front
Trait Implementations
sourceimpl Clone for ActionSide
 
impl Clone for ActionSide
sourcefn clone(&self) -> ActionSide
 
fn clone(&self) -> ActionSide
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 ActionSide
 
impl Debug for ActionSide
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<ActionSide> for u8
 
impl From<ActionSide> for u8
sourcefn from(x: ActionSide) -> Self
 
fn from(x: ActionSide) -> Self
Converts to this type from the input type.
sourceimpl From<ActionSide> for usize
 
impl From<ActionSide> for usize
sourcefn from(x: ActionSide) -> Self
 
fn from(x: ActionSide) -> Self
Converts to this type from the input type.
sourceimpl From<ActionSide> for RelativeSide
 
impl From<ActionSide> for RelativeSide
sourcefn from(x: ActionSide) -> Self
 
fn from(x: ActionSide) -> Self
Converts to this type from the input type.
sourceimpl Hash for ActionSide
 
impl Hash for ActionSide
sourceimpl Ord for ActionSide
 
impl Ord for ActionSide
sourceimpl PartialEq<ActionSide> for ActionSide
 
impl PartialEq<ActionSide> for ActionSide
sourceimpl PartialOrd<ActionSide> for ActionSide
 
impl PartialOrd<ActionSide> for ActionSide
sourcefn partial_cmp(&self, other: &ActionSide) -> Option<Ordering>
 
fn partial_cmp(&self, other: &ActionSide) -> 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 ActionSide
 
impl TryFrom<RelativeSide> for ActionSide
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 ActionSide
 
impl TryFrom<u8> for ActionSide
impl Copy for ActionSide
impl Eq for ActionSide
impl Side for ActionSide
impl StructuralEq for ActionSide
impl StructuralPartialEq for ActionSide
Auto Trait Implementations
impl RefUnwindSafe for ActionSide
impl Send for ActionSide
impl Sync for ActionSide
impl Unpin for ActionSide
impl UnwindSafe for ActionSide
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