Struct gol_core::cell::index::GridPoint2D [−][src]
Fields
x: T
y: T
Implementations
impl<T> GridPoint2D<T>
[src]
Trait Implementations
impl<T> BoardNeighborManager<GridPoint2D<T>, IntoIter<GridPoint2D<T>, Global>> for NeighborMoore where
T: PointPrimInt,
[src]
T: PointPrimInt,
fn get_neighbors_idx(&self, idx: &GridPoint2D<T>) -> IntoIter<GridPoint2D<T>>
[src]
impl<T> BoardNeighborManager<GridPoint2D<T>, IntoIter<GridPoint2D<T>, Global>> for NeighborMooreDonut<Shape2D> where
T: PointPrimInt,
[src]
T: PointPrimInt,
fn get_neighbors_idx(&self, idx: &GridPoint2D<T>) -> IntoIter<GridPoint2D<T>>
[src]
impl<T> BoardNeighborManager<GridPoint2D<T>, IntoIter<GridPoint2D<T>, Global>> for NeighborMooreTriangle where
T: PointPrimInt,
[src]
T: PointPrimInt,
fn get_neighbors_idx(&self, idx: &GridPoint2D<T>) -> IntoIter<GridPoint2D<T>>
[src]
impl<T, U> BoardNeighborManager<GridPoint2D<U>, IntoIter<GridPoint2D<U>, Global>> for NeighborsGridDonut<T> where
T: MarginPrimInt,
U: PointPrimInt,
[src]
T: MarginPrimInt,
U: PointPrimInt,
fn get_neighbors_idx(&self, idx: &GridPoint2D<U>) -> IntoIter<GridPoint2D<U>>
[src]
impl<T, U> BoardNeighborManager<GridPoint2D<U>, IntoIter<GridPoint2D<U>, Global>> for NeighborsGridSurround<T> where
T: MarginPrimInt,
U: PointPrimInt + TryFrom<T>,
[src]
T: MarginPrimInt,
U: PointPrimInt + TryFrom<T>,
fn get_neighbors_idx(&self, idx: &GridPoint2D<U>) -> IntoIter<GridPoint2D<U>>
[src]
impl<T: Clone> Clone for GridPoint2D<T>
[src]
fn clone(&self) -> GridPoint2D<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug> Debug for GridPoint2D<T>
[src]
impl<'de, T> Deserialize<'de> for GridPoint2D<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> Eq for GridPoint2D<T> where
T: PartialEq,
[src]
T: PartialEq,
impl<T, U, I> GridFactory<GridPoint2D<T>, U, I> for Grid<GridPoint2D<T>> where
T: PrimInt + FromPrimitive + Send + Sync,
U: PrimInt + Unsigned + ToPrimitive + Send + Sync,
I: Iterator<Item = U>,
[src]
T: PrimInt + FromPrimitive + Send + Sync,
U: PrimInt + Unsigned + ToPrimitive + Send + Sync,
I: Iterator<Item = U>,
fn new_with_origin(shape: I, origin: GridOrigin) -> Grid<GridPoint2D<T>>
[src]
fn new(shape: I) -> Grid<T>
[src]
impl<T> Hash for GridPoint2D<T> where
T: Hash,
[src]
T: Hash,
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<GridPoint2D<T>> for GridPoint2D<T> where
T: PartialEq,
[src]
T: PartialEq,
impl<T> Serialize for GridPoint2D<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> ToGridPointND<T> for GridPoint2D<T> where
T: Clone,
[src]
T: Clone,
fn to_nd(&self) -> GridPointND<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for GridPoint2D<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for GridPoint2D<T> where
T: Send,
T: Send,
impl<T> Sync for GridPoint2D<T> where
T: Sync,
T: Sync,
impl<T> Unpin for GridPoint2D<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for GridPoint2D<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,
pub 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> 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>,