[−][src]Struct beehive::PointAxial
Axial hex coordinates representing points. Always valid.
Fields
x: T
y: T
w: T
Methods
impl<T> PointAxial<T>
[src]
impl<T: Zero> PointAxial<T>
[src]
impl<T: One> PointAxial<T>
[src]
impl<T: Copy + Zero + Sub<Output = T>> PointAxial<T>
[src]
impl<T: Real> PointAxial<T>
[src]
impl<T> PointAxial<T>
[src]
pub fn cast<N>(self) -> PointAxial<N> where
N: 'static + Copy,
T: AsPrimitive<N>,
[src]
N: 'static + Copy,
T: AsPrimitive<N>,
Cast to a primitive type.
N
must be a primitive numeric type.
impl<T> PointAxial<T>
[src]
pub fn into_vector(self) -> VectorAxial<T>
[src]
Convert this point to a vector with the same component values.
Trait Implementations
impl<T> Add<Direction> for PointAxial<T> where
T: Zero + One + Add + Neg<Output = T>,
[src]
T: Zero + One + Add + Neg<Output = T>,
type Output = PointAxial<T>
The resulting type after applying the +
operator.
fn add(self, rhs: Direction) -> Self::Output
[src]
impl<T, O> Add<VectorAxial<T>> for PointAxial<T> where
T: Add<Output = O>,
[src]
T: Add<Output = O>,
type Output = PointAxial<O>
The resulting type after applying the +
operator.
fn add(self, rhs: VectorAxial<T>) -> Self::Output
[src]
impl<T> AddAssign<Direction> for PointAxial<T> where
T: Zero + One + AddAssign<T> + Neg<Output = T>,
[src]
T: Zero + One + AddAssign<T> + Neg<Output = T>,
fn add_assign(&mut self, rhs: Direction)
[src]
impl<T> AddAssign<VectorAxial<T>> for PointAxial<T> where
T: AddAssign,
[src]
T: AddAssign,
fn add_assign(&mut self, rhs: VectorAxial<T>)
[src]
impl<T: Clone> Clone for PointAxial<T>
[src]
fn clone(&self) -> PointAxial<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Copy> Copy for PointAxial<T>
[src]
impl<T: Debug> Debug for PointAxial<T>
[src]
impl<T: Default> Default for PointAxial<T>
[src]
fn default() -> PointAxial<T>
[src]
impl<'de, T> Deserialize<'de> for PointAxial<T> where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<T: Display> Display for PointAxial<T>
[src]
impl<T: Eq> Eq for PointAxial<T>
[src]
impl<T> Extend<PointAxial<T>> for QuadPrism<T> where
T: PartialOrd + One + Add<Output = T>,
[src]
T: PartialOrd + One + Add<Output = T>,
fn extend<I: IntoIterator<Item = PointAxial<T>>>(&mut self, it: I)
[src]
impl<T> From<Point<T>> for PointAxial<T>
[src]
impl<T: Copy + Zero + Sub<Output = T>> From<PointAxial<T>> for Point<T>
[src]
fn from(c: PointAxial<T>) -> Point<T>
[src]
impl<V> From<PointAxial<V>> for Geom<V>
[src]
fn from(p: PointAxial<V>) -> Self
[src]
impl<T> FromIterator<PointAxial<T>> for QuadPrism<T> where
T: Copy + Default + PartialOrd + One + Add<Output = T>,
[src]
T: Copy + Default + PartialOrd + One + Add<Output = T>,
fn from_iter<I: IntoIterator<Item = PointAxial<T>>>(it: I) -> Self
[src]
impl<T: Hash> Hash for PointAxial<T>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T, I: Subscript> Index<PointAxial<I>> for HexMap<T, I>
[src]
impl<T, I: Subscript> IndexMut<PointAxial<I>> for HexMap<T, I>
[src]
fn index_mut(&mut self, point: PointAxial<I>) -> &mut T
[src]
impl<T: PartialEq> PartialEq<PointAxial<T>> for PointAxial<T>
[src]
fn eq(&self, other: &PointAxial<T>) -> bool
[src]
fn ne(&self, other: &PointAxial<T>) -> bool
[src]
impl<T> Serialize for PointAxial<T> where
T: Serialize,
[src]
T: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<T> StructuralEq for PointAxial<T>
[src]
impl<T> StructuralPartialEq for PointAxial<T>
[src]
impl<T> Sub<Direction> for PointAxial<T> where
T: Zero + One + Sub<Output = T> + Neg<Output = T>,
[src]
T: Zero + One + Sub<Output = T> + Neg<Output = T>,
type Output = PointAxial<T>
The resulting type after applying the -
operator.
fn sub(self, rhs: Direction) -> Self::Output
[src]
impl<T, O> Sub<PointAxial<T>> for PointAxial<T> where
T: Sub<Output = O>,
[src]
T: Sub<Output = O>,
type Output = VectorAxial<O>
The resulting type after applying the -
operator.
fn sub(self, rhs: PointAxial<T>) -> Self::Output
[src]
impl<T, O> Sub<VectorAxial<T>> for PointAxial<T> where
T: Sub<Output = O>,
[src]
T: Sub<Output = O>,
type Output = PointAxial<O>
The resulting type after applying the -
operator.
fn sub(self, rhs: VectorAxial<T>) -> Self::Output
[src]
impl<T> SubAssign<Direction> for PointAxial<T> where
T: Zero + One + SubAssign<T> + Neg<Output = T>,
[src]
T: Zero + One + SubAssign<T> + Neg<Output = T>,
fn sub_assign(&mut self, rhs: Direction)
[src]
impl<T> SubAssign<VectorAxial<T>> for PointAxial<T> where
T: SubAssign,
[src]
T: SubAssign,
fn sub_assign(&mut self, rhs: VectorAxial<T>)
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for PointAxial<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for PointAxial<T> where
T: Send,
T: Send,
impl<T> Sync for PointAxial<T> where
T: Sync,
T: Sync,
impl<T> Unpin for PointAxial<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for PointAxial<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,