pub struct Grid {
pub faces: [GridFace; 6],
}Fields§
§faces: [GridFace; 6]Implementations§
Source§impl Grid
impl Grid
pub fn new() -> Grid
pub fn apply_move(&mut self, mv: CubeMove)
pub fn print(&self)
pub fn move_face(&mut self, side: GridSide, direction: MoveDirection)
pub fn get_neighbors(&self, side: GridSide) -> [NeighborSlice; 4]
Auto Trait Implementations§
impl Freeze for Grid
impl RefUnwindSafe for Grid
impl Send for Grid
impl Sync for Grid
impl Unpin for Grid
impl UnwindSafe for Grid
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