Struct gol_core::neighbors::grid_donut::NeighborsGridDonut [−][src]
Implementations
impl<T> NeighborsGridDonut<T>
[src]
pub fn new<I>(margin: T, board_shape: I) -> Self where
T: Clone,
I: Iterator<Item = T>,
[src]
T: Clone,
I: Iterator<Item = T>,
pub fn new_with_variable_margin<'a, 'b, I1, I2>(
margins: I1,
board_shape: I2
) -> Self where
'a: 'b,
T: 'a + Clone,
I1: Iterator<Item = &'b (T, T)>,
I2: Iterator<Item = T>,
[src]
margins: I1,
board_shape: I2
) -> Self where
'a: 'b,
T: 'a + Clone,
I1: Iterator<Item = &'b (T, T)>,
I2: Iterator<Item = T>,
Trait Implementations
impl<T, U> BoardNeighborManager<GridPoint1D<U>, IntoIter<GridPoint1D<U>, Global>> for NeighborsGridDonut<T> where
T: MarginPrimInt,
U: PointPrimInt,
[src]
T: MarginPrimInt,
U: PointPrimInt,
fn get_neighbors_idx(&self, idx: &GridPoint1D<U>) -> IntoIter<GridPoint1D<U>>
[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<GridPoint3D<U>, IntoIter<GridPoint3D<U>, Global>> for NeighborsGridDonut<T> where
T: MarginPrimInt,
U: PointPrimInt,
[src]
T: MarginPrimInt,
U: PointPrimInt,
fn get_neighbors_idx(&self, idx: &GridPoint3D<U>) -> IntoIter<GridPoint3D<U>>
[src]
impl<T, U> BoardNeighborManager<GridPointND<U>, IntoIter<GridPointND<U>, Global>> for NeighborsGridDonut<T> where
T: MarginPrimInt,
U: PointPrimInt,
[src]
T: MarginPrimInt,
U: PointPrimInt,
fn get_neighbors_idx(&self, idx: &GridPointND<U>) -> IntoIter<GridPointND<U>>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for NeighborsGridDonut<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for NeighborsGridDonut<T> where
T: Send,
T: Send,
impl<T> Sync for NeighborsGridDonut<T> where
T: Sync,
T: Sync,
impl<T> Unpin for NeighborsGridDonut<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for NeighborsGridDonut<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> 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, 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>,