pub struct Cube {
pub start_time: u128,
pub last_step: String,
pub front: Face,
pub back: Face,
pub left: Face,
pub right: Face,
pub up: Face,
pub down: Face,
}
Fields§
§start_time: u128
§last_step: String
§front: Face
§back: Face
§left: Face
§right: Face
§up: Face
§down: Face
Implementations§
Source§impl Cube
impl Cube
pub fn new() -> Cube
pub fn reset(&mut self)
pub fn is_solved(&self) -> bool
pub fn rot(&mut self, operation: char)
pub fn scramble(&mut self, steps: u32)
pub fn rots(&mut self, operations: &str)
pub fn get_svg(&self) -> String
pub fn get_svg_base64_png(&self) -> String
Auto Trait Implementations§
impl Freeze for Cube
impl RefUnwindSafe for Cube
impl Send for Cube
impl Sync for Cube
impl Unpin for Cube
impl UnwindSafe for Cube
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