[][src]Struct oxygengine::prelude::Grid2dNeighborSample

pub struct Grid2dNeighborSample<T> { /* fields omitted */ }

Implementations

impl<T> Grid2dNeighborSample<T> where
    T: Clone
[src]

pub fn cols(&self) -> usize[src]

pub fn rows(&self) -> usize[src]

pub fn size(&self) -> (usize, usize)[src]

pub fn len(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

pub fn cells(&self) -> &[T][src]

pub fn cell(&self, col: usize, row: usize) -> Option<&T>[src]

pub fn cell_mut(&mut self, col: usize, row: usize) -> Option<&mut T>[src]

pub fn get(&self, col: usize, row: usize) -> Option<T>[src]

pub fn set(&mut self, col: usize, row: usize, value: T)[src]

pub fn map<F, R>(&self, f: F) -> Grid2dNeighborSample<R> where
    F: FnMut(usize, usize, &T) -> R,
    R: Default + Copy
[src]

pub fn with<F>(&mut self, f: F) where
    F: FnMut(usize, usize, &T) -> T, 
[src]

pub fn iter(&self) -> impl DoubleEndedIterator[src]

pub fn iter_mut(&mut self) -> impl DoubleEndedIterator[src]

Trait Implementations

impl<T> Debug for Grid2dNeighborSample<T> where
    T: Debug
[src]

impl<I, T> From<(usize, I)> for Grid2dNeighborSample<T> where
    I: Iterator<Item = T>,
    T: Default + Copy
[src]

impl<T> Index<[usize; 2]> for Grid2dNeighborSample<T> where
    T: Clone + Send + Sync
[src]

type Output = T

The returned type after indexing.

impl<T> Index<(usize, usize)> for Grid2dNeighborSample<T> where
    T: Clone + Send + Sync
[src]

type Output = T

The returned type after indexing.

impl<T> IndexMut<[usize; 2]> for Grid2dNeighborSample<T> where
    T: Clone + Send + Sync
[src]

impl<T> IndexMut<(usize, usize)> for Grid2dNeighborSample<T> where
    T: Clone + Send + Sync
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Grid2dNeighborSample<T> where
    T: RefUnwindSafe

impl<T> Send for Grid2dNeighborSample<T> where
    T: Send

impl<T> Sync for Grid2dNeighborSample<T> where
    T: Sync

impl<T> Unpin for Grid2dNeighborSample<T> where
    T: Unpin

impl<T> UnwindSafe for Grid2dNeighborSample<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Event for T where
    T: Send + Sync + 'static, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: Any, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,