pub enum TetrisDirection {
Up,
Down,
Left,
Right,
}Variants§
Implementations§
Source§impl TetrisDirection
impl TetrisDirection
pub fn opposite_direction(&self) -> TetrisDirection
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TetrisDirection
impl RefUnwindSafe for TetrisDirection
impl Send for TetrisDirection
impl Sync for TetrisDirection
impl Unpin for TetrisDirection
impl UnwindSafe for TetrisDirection
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