#[repr(u8)]pub enum Side {
Bottom = 0,
Top = 1,
Back = 2,
Front = 3,
Right = 4,
Left = 5,
}Expand description
A side, as robots, drones, redstone and transposers number them. Relative names apply to robots and drones; absolute ones to blocks.
Variants§
Bottom = 0
Down / bottom.
Top = 1
Up / top.
Back = 2
North, or back for robots.
Front = 3
South, or front for robots.
Right = 4
West, or right for robots.
Left = 5
East, or left for robots.
Implementations§
Source§impl Side
impl Side
pub const DOWN: Side = Side::Bottom
pub const UP: Side = Side::Top
pub const NORTH: Side = Side::Back
pub const SOUTH: Side = Side::Front
pub const WEST: Side = Side::Right
pub const EAST: Side = Side::Left
pub const ALL: [Side; 6]
pub fn from_index(i: i64) -> Option<Side>
Trait Implementations§
impl Copy for Side
impl Eq for Side
impl StructuralPartialEq for Side
Auto Trait Implementations§
impl Forget for Side
impl Freeze for Side
impl Move for Side
impl RefUnwindSafe for Side
impl Send for Side
impl Sync for Side
impl Unpin for Side
impl UnsafeUnpin for Side
impl UnwindSafe for Side
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