Struct hex_coordinates::AxialCoordinates
source · [−]Expand description
CubeCoordinates minus s coordinate.
Fields
q: isizer: isizeImplementations
sourceimpl AxialCoordinates
impl AxialCoordinates
Trait Implementations
sourceimpl Add<AxialCoordinates> for AxialCoordinates
impl Add<AxialCoordinates> for AxialCoordinates
type Output = AxialCoordinates
type Output = AxialCoordinates
The resulting type after applying the + operator.
sourceimpl Clone for AxialCoordinates
impl Clone for AxialCoordinates
sourcefn clone(&self) -> AxialCoordinates
fn clone(&self) -> AxialCoordinates
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AxialCoordinates
impl Debug for AxialCoordinates
sourceimpl From<AxialCoordinates> for CubeCoordinates
impl From<AxialCoordinates> for CubeCoordinates
sourceconst fn from(_: AxialCoordinates) -> Self
const fn from(_: AxialCoordinates) -> Self
Converts to this type from the input type.
sourceimpl From<AxialCoordinates> for DoubledCoordinates<{ DoubledSystem::Height }>
impl From<AxialCoordinates> for DoubledCoordinates<{ DoubledSystem::Height }>
sourceconst fn from(_: AxialCoordinates) -> Self
const fn from(_: AxialCoordinates) -> Self
Converts to this type from the input type.
sourceimpl From<AxialCoordinates> for DoubledCoordinates<{ DoubledSystem::Width }>
impl From<AxialCoordinates> for DoubledCoordinates<{ DoubledSystem::Width }>
sourceconst fn from(_: AxialCoordinates) -> Self
const fn from(_: AxialCoordinates) -> Self
Converts to this type from the input type.
sourceimpl From<AxialCoordinates> for OffsetCoordinates<{ OffsetSystem::EvenR }>
impl From<AxialCoordinates> for OffsetCoordinates<{ OffsetSystem::EvenR }>
sourceconst fn from(_: AxialCoordinates) -> Self
const fn from(_: AxialCoordinates) -> Self
Converts to this type from the input type.
sourceimpl From<AxialCoordinates> for OffsetCoordinates<{ OffsetSystem::OddQ }>
impl From<AxialCoordinates> for OffsetCoordinates<{ OffsetSystem::OddQ }>
sourceconst fn from(_: AxialCoordinates) -> Self
const fn from(_: AxialCoordinates) -> Self
Converts to this type from the input type.
sourceimpl From<AxialCoordinates> for OffsetCoordinates<{ OffsetSystem::OddR }>
impl From<AxialCoordinates> for OffsetCoordinates<{ OffsetSystem::OddR }>
sourceconst fn from(_: AxialCoordinates) -> Self
const fn from(_: AxialCoordinates) -> Self
Converts to this type from the input type.
sourceimpl From<CubeCoordinates> for AxialCoordinates
impl From<CubeCoordinates> for AxialCoordinates
sourceconst fn from(_: CubeCoordinates) -> Self
const fn from(_: CubeCoordinates) -> Self
Converts to this type from the input type.
sourceimpl From<Direction> for AxialCoordinates
impl From<Direction> for AxialCoordinates
sourceimpl From<DoubledCoordinates<{ DoubledSystem::Height }>> for AxialCoordinates
impl From<DoubledCoordinates<{ DoubledSystem::Height }>> for AxialCoordinates
sourceconst fn from(_: DoubledCoordinates<{ DoubledSystem::Height }>) -> Self
const fn from(_: DoubledCoordinates<{ DoubledSystem::Height }>) -> Self
Converts to this type from the input type.
sourceimpl From<DoubledCoordinates<{ DoubledSystem::Width }>> for AxialCoordinates
impl From<DoubledCoordinates<{ DoubledSystem::Width }>> for AxialCoordinates
sourceconst fn from(_: DoubledCoordinates<{ DoubledSystem::Width }>) -> Self
const fn from(_: DoubledCoordinates<{ DoubledSystem::Width }>) -> Self
Converts to this type from the input type.
sourceimpl From<OffsetCoordinates<{ OffsetSystem::EvenQ }>> for AxialCoordinates
impl From<OffsetCoordinates<{ OffsetSystem::EvenQ }>> for AxialCoordinates
sourceconst fn from(_: OffsetCoordinates<{ OffsetSystem::EvenQ }>) -> Self
const fn from(_: OffsetCoordinates<{ OffsetSystem::EvenQ }>) -> Self
Converts to this type from the input type.
sourceimpl From<OffsetCoordinates<{ OffsetSystem::EvenR }>> for AxialCoordinates
impl From<OffsetCoordinates<{ OffsetSystem::EvenR }>> for AxialCoordinates
sourceconst fn from(_: OffsetCoordinates<{ OffsetSystem::EvenR }>) -> Self
const fn from(_: OffsetCoordinates<{ OffsetSystem::EvenR }>) -> Self
Converts to this type from the input type.
sourceimpl From<OffsetCoordinates<{ OffsetSystem::OddQ }>> for AxialCoordinates
impl From<OffsetCoordinates<{ OffsetSystem::OddQ }>> for AxialCoordinates
sourceconst fn from(_: OffsetCoordinates<{ OffsetSystem::OddQ }>) -> Self
const fn from(_: OffsetCoordinates<{ OffsetSystem::OddQ }>) -> Self
Converts to this type from the input type.
sourceimpl From<OffsetCoordinates<{ OffsetSystem::OddR }>> for AxialCoordinates
impl From<OffsetCoordinates<{ OffsetSystem::OddR }>> for AxialCoordinates
sourceconst fn from(_: OffsetCoordinates<{ OffsetSystem::OddR }>) -> Self
const fn from(_: OffsetCoordinates<{ OffsetSystem::OddR }>) -> Self
Converts to this type from the input type.
sourceimpl Sub<AxialCoordinates> for AxialCoordinates
impl Sub<AxialCoordinates> for AxialCoordinates
type Output = AxialCoordinates
type Output = AxialCoordinates
The resulting type after applying the - operator.
impl Copy for AxialCoordinates
Auto Trait Implementations
impl RefUnwindSafe for AxialCoordinates
impl Send for AxialCoordinates
impl Sync for AxialCoordinates
impl Unpin for AxialCoordinates
impl UnwindSafe for AxialCoordinates
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