Struct oxygengine_procedural::Grid2dNeighborSample [−][src]
pub struct Grid2dNeighborSample<T> { /* fields omitted */ }
Implementations
impl<T> Grid2dNeighborSample<T> where
T: Clone,
[src]
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]
F: FnMut(usize, usize, &T) -> R,
R: Default + Copy,
pub fn with<F>(&mut self, f: F) where
F: FnMut(usize, usize, &T) -> T,
[src]
F: FnMut(usize, usize, &T) -> T,
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<T> Debug for Grid2dNeighborSample<T> where
T: Debug,
[src]impl<I, T> From<(usize, I)> for Grid2dNeighborSample<T> where
T: Default + Copy,
I: Iterator<Item = T>,
[src]
impl<I, T> From<(usize, I)> for Grid2dNeighborSample<T> where
T: Default + Copy,
I: Iterator<Item = T>,
[src]Auto Trait Implementations
impl<T> RefUnwindSafe for Grid2dNeighborSample<T> where
T: RefUnwindSafe,
impl<T> RefUnwindSafe for Grid2dNeighborSample<T> where
T: RefUnwindSafe,
impl<T> Send for Grid2dNeighborSample<T> where
T: Send,
impl<T> Send for Grid2dNeighborSample<T> where
T: Send,
impl<T> Sync for Grid2dNeighborSample<T> where
T: Sync,
impl<T> Sync for Grid2dNeighborSample<T> where
T: Sync,
impl<T> Unpin for Grid2dNeighborSample<T> where
T: Unpin,
impl<T> Unpin for Grid2dNeighborSample<T> where
T: Unpin,
impl<T> UnwindSafe for Grid2dNeighborSample<T> where
T: UnwindSafe,
impl<T> UnwindSafe for Grid2dNeighborSample<T> where
T: UnwindSafe,