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§
Trait Implementations§
Source§impl Clone for ActionSide
impl Clone for ActionSide
Source§fn clone(&self) -> ActionSide
fn clone(&self) -> ActionSide
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 ActionSide
impl Debug for ActionSide
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<ActionSide> for Relative
impl From<ActionSide> for Relative
Source§fn from(x: ActionSide) -> Self
fn from(x: ActionSide) -> Self
Converts to this type from the input type.
Source§impl From<ActionSide> for u8
impl From<ActionSide> for u8
Source§fn from(x: ActionSide) -> Self
fn from(x: ActionSide) -> Self
Converts to this type from the input type.
Source§impl From<ActionSide> for usize
impl From<ActionSide> for usize
Source§fn from(x: ActionSide) -> Self
fn from(x: ActionSide) -> Self
Converts to this type from the input type.
Source§impl Hash for ActionSide
impl Hash for ActionSide
Source§impl Ord for ActionSide
impl Ord for ActionSide
Source§fn cmp(&self, other: &ActionSide) -> Ordering
fn cmp(&self, other: &ActionSide) -> 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 ActionSide
impl PartialEq for ActionSide
Source§impl PartialOrd for ActionSide
impl PartialOrd for ActionSide
Source§impl TryFrom<Relative> for ActionSide
impl TryFrom<Relative> for ActionSide
Source§type Error = TryFromRelativeSideError
type Error = TryFromRelativeSideError
The type returned in the event of a conversion error.
Source§impl TryFrom<u8> for ActionSide
impl TryFrom<u8> for ActionSide
impl Copy for ActionSide
impl Eq for ActionSide
impl Side for ActionSide
impl StructuralPartialEq for ActionSide
Auto Trait Implementations§
impl Freeze for ActionSide
impl RefUnwindSafe for ActionSide
impl Send for ActionSide
impl Sync for ActionSide
impl Unpin for ActionSide
impl UnwindSafe for ActionSide
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