pub enum Move {
Show 15 variants
U(MoveVariant),
L(MoveVariant),
F(MoveVariant),
R(MoveVariant),
B(MoveVariant),
D(MoveVariant),
Uw(i32, MoveVariant),
Lw(i32, MoveVariant),
Fw(i32, MoveVariant),
Rw(i32, MoveVariant),
Bw(i32, MoveVariant),
Dw(i32, MoveVariant),
X(MoveVariant),
Y(MoveVariant),
Z(MoveVariant),
}Expand description
A move of a NxNxN Rubik’s Cube represented in WCA notation.
Each Move must be tagged with a MoveVariant to completely define a move.
The moves follow the standard WCA notation as described in the WCA regulations.
Variants§
U(MoveVariant)
Rotate the upper layer.
L(MoveVariant)
Rotate the left layer.
F(MoveVariant)
Rotate the front layer.
R(MoveVariant)
Rotate the right layer.
B(MoveVariant)
Rotate the back layer.
D(MoveVariant)
Rotate the down layer.
Uw(i32, MoveVariant)
Rotate the uppermost n layers.
Lw(i32, MoveVariant)
Rotate the leftmost n layers.
Fw(i32, MoveVariant)
Rotate the frontmost n layers.
Rw(i32, MoveVariant)
Rotate the rightmost n layers.
Bw(i32, MoveVariant)
Rotate the backmost n layers.
Dw(i32, MoveVariant)
Rotate the downmost n layers.
X(MoveVariant)
Rotate the entire cube along the x-axis.
Y(MoveVariant)
Rotate the entire cube along the y-axis.
Z(MoveVariant)
Rotate the entire cube along the z-axis.
Implementations§
Source§impl Move
impl Move
Sourcepub fn get_variant(&self) -> MoveVariant
pub fn get_variant(&self) -> MoveVariant
Extracts the MoveVariant of a Move.
Sourcepub fn with_variant(&self, variant: MoveVariant) -> Move
pub fn with_variant(&self, variant: MoveVariant) -> Move
Returns the Move with the given MoveVariant.
Trait Implementations§
impl Copy for Move
impl Eq 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