[−][src]Struct gol_core::cell::index::GridPointND
Implementations
impl<T> GridPointND<T>
[src]
pub fn new<'a, 'b, I>(indices: I) -> Self where
'a: 'b,
T: 'a + Clone,
I: Iterator<Item = &'b T>,
[src]
'a: 'b,
T: 'a + Clone,
I: Iterator<Item = &'b T>,
pub fn indices<'a>(&'a self) -> Iter<'a, T>
[src]
pub fn to_1d(&self) -> Option<GridPoint1D<T>> where
T: Clone,
[src]
T: Clone,
pub fn to_2d(&self) -> Option<GridPoint2D<T>> where
T: Clone,
[src]
T: Clone,
pub fn to_3d(&self) -> Option<GridPoint3D<T>> where
T: Clone,
[src]
T: Clone,
Trait Implementations
impl<T, U> BoardNeighborManager<GridPointND<U>, IntoIter<GridPointND<U>, Global>> for NeighborsGridSurround<T> where
T: MarginPrimInt,
U: PointPrimInt,
[src]
T: MarginPrimInt,
U: PointPrimInt,
pub fn get_neighbors_idx(
&self,
idx: &GridPointND<U>
) -> IntoIter<GridPointND<U>>
[src]
&self,
idx: &GridPointND<U>
) -> IntoIter<GridPointND<U>>
impl<T: Clone> Clone for GridPointND<T>
[src]
pub fn clone(&self) -> GridPointND<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug> Debug for GridPointND<T>
[src]
impl<T> Eq for GridPointND<T> where
T: PartialEq,
[src]
T: PartialEq,
impl<T, U, I> GridFactory<GridPointND<T>, U, I> for Grid<GridPointND<T>> where
T: PrimInt + CheckedDiv + TryFrom<U> + Send + Sync,
U: PrimInt + Unsigned + ToPrimitive + FromPrimitive + Send + Sync,
I: Iterator<Item = U>,
[src]
T: PrimInt + CheckedDiv + TryFrom<U> + Send + Sync,
U: PrimInt + Unsigned + ToPrimitive + FromPrimitive + Send + Sync,
I: Iterator<Item = U>,
pub fn new_with_origin(shape: I, origin: GridOrigin) -> Grid<GridPointND<T>>
[src]
pub fn new(shape: I) -> Grid<T>
[src]
impl<T> Hash for GridPointND<T> where
T: Hash,
[src]
T: Hash,
pub fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T> PartialEq<GridPointND<T>> for GridPointND<T> where
T: PartialEq,
[src]
T: PartialEq,
Auto Trait Implementations
impl<T> RefUnwindSafe for GridPointND<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for GridPointND<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for GridPointND<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for GridPointND<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for GridPointND<T> where
T: UnwindSafe,
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,