pub struct GridIndex<C>(pub i64, _);
Expand description
An x or y index in chunk coordinates, not world coordinates.
Tuple Fields§
§0: i64
Implementations§
Trait Implementations§
Source§impl<C> AddAssign for GridIndex<C>
impl<C> AddAssign for GridIndex<C>
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moreSource§impl<C> DivAssign<i64> for GridIndex<C>
impl<C> DivAssign<i64> for GridIndex<C>
Source§fn div_assign(&mut self, rhs: i64)
fn div_assign(&mut self, rhs: i64)
Performs the
/=
operation. Read moreSource§impl<C> DivAssign for GridIndex<C>
impl<C> DivAssign for GridIndex<C>
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/=
operation. Read moreSource§impl<C> MulAssign for GridIndex<C>
impl<C> MulAssign for GridIndex<C>
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*=
operation. Read moreSource§impl<C> Num for GridIndex<C>
impl<C> Num for GridIndex<C>
Source§fn iter_range(range: Range<Self>) -> impl Iterator<Item = Self>
fn iter_range(range: Range<Self>) -> impl Iterator<Item = Self>
Iterate over a range. Workaround to std::ops::Range’s Iterator impl
not being implementable for custom types.
Source§impl<C> Ord for GridIndex<C>
impl<C> Ord for GridIndex<C>
Source§impl<C> PartialOrd for GridIndex<C>
impl<C> PartialOrd for GridIndex<C>
Source§impl<C> SubAssign for GridIndex<C>
impl<C> SubAssign for GridIndex<C>
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl<C> Copy for GridIndex<C>
impl<C> Eq for GridIndex<C>
Auto Trait Implementations§
impl<C> Freeze for GridIndex<C>
impl<C> RefUnwindSafe for GridIndex<C>where
C: RefUnwindSafe,
impl<C> Send for GridIndex<C>where
C: Send,
impl<C> Sync for GridIndex<C>where
C: Sync,
impl<C> Unpin for GridIndex<C>where
C: Unpin,
impl<C> UnwindSafe for GridIndex<C>where
C: UnwindSafe,
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