pub enum Move {
Show 18 variants
U,
U2,
U3,
D,
D2,
D3,
R,
R2,
R3,
L,
L2,
L3,
F,
F2,
F3,
B,
B2,
B3,
}
Expand description
Layer moves, Up, Down, Right, Left, Face, Back. $ clockwise, $2 double, $3 counter-clockwise.
Variants§
Implementations§
Source§impl Move
impl Move
pub fn is_inverse(&self, other: Move) -> bool
pub fn is_same_layer(&self, other: Move) -> bool
pub fn get_inverse(self) -> Self
Trait Implementations§
impl Copy for Move
impl StructuralPartialEq for Move
Auto Trait Implementations§
impl Freeze for Move
impl RefUnwindSafe for Move
impl Send for Move
impl Sync for Move
impl Unpin for Move
impl UnwindSafe for Move
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