Enum hex_coordinates::Direction
source · [−]pub enum Direction {
One,
Two,
Three,
Four,
Five,
Six,
}Expand description
3 2
╲ ╱
4 ──╳── 1
╱ ╲
5 6 +s -r
╲ ╱
-q ──╳── +q
╱ ╲
+r -sVariants
One
Two
Three
Four
Five
Six
Implementations
Trait Implementations
sourceimpl From<Direction> for AxialCoordinates
impl From<Direction> for AxialCoordinates
sourceimpl From<Direction> for CubeCoordinates
impl From<Direction> for CubeCoordinates
sourceimpl From<Direction> for DoubledCoordinates<{ DoubledSystem::Height }>
impl From<Direction> for DoubledCoordinates<{ DoubledSystem::Height }>
sourceimpl From<Direction> for DoubledCoordinates<{ DoubledSystem::Width }>
impl From<Direction> for DoubledCoordinates<{ DoubledSystem::Width }>
impl Copy for Direction
Auto Trait Implementations
impl RefUnwindSafe for Direction
impl Send for Direction
impl Sync for Direction
impl Unpin for Direction
impl UnwindSafe for Direction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more