Enum sark_grids::directions::Dir8
source · pub enum Dir8 {
Up,
Down,
Left,
Right,
UpLeft,
UpRight,
DownLeft,
DownRight,
}
Expand description
8 directions on a 2d grid.
Variants§
Implementations§
Trait Implementations§
source§impl PartialEq<Dir8> for Dir8
impl PartialEq<Dir8> for Dir8
impl Copy for Dir8
impl Eq for Dir8
impl StructuralEq for Dir8
impl StructuralPartialEq for Dir8
Auto Trait Implementations§
impl RefUnwindSafe for Dir8
impl Send for Dir8
impl Sync for Dir8
impl Unpin for Dir8
impl UnwindSafe for Dir8
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