[−][src]Struct oxygengine::utils::prelude::Grid2dNeighborSample
Implementations
impl<T> Grid2dNeighborSample<T> where
T: Clone,
[src]
T: Clone,
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]
T: Debug,
impl<I, T> From<(usize, I)> for Grid2dNeighborSample<T> where
I: Iterator<Item = T>,
T: Default + Copy,
[src]
I: Iterator<Item = T>,
T: Default + Copy,
impl<T> Index<[usize; 2]> for Grid2dNeighborSample<T> where
T: Clone + Send + Sync,
[src]
T: Clone + Send + Sync,
impl<T> Index<(usize, usize)> for Grid2dNeighborSample<T> where
T: Clone + Send + Sync,
[src]
T: Clone + Send + Sync,
impl<T> IndexMut<[usize; 2]> for Grid2dNeighborSample<T> where
T: Clone + Send + Sync,
[src]
T: Clone + Send + Sync,
impl<T> IndexMut<(usize, usize)> for Grid2dNeighborSample<T> where
T: Clone + Send + Sync,
[src]
T: Clone + Send + Sync,
Auto Trait Implementations
impl<T> RefUnwindSafe for Grid2dNeighborSample<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Grid2dNeighborSample<T> where
T: Send,
T: Send,
impl<T> Sync for Grid2dNeighborSample<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Grid2dNeighborSample<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Grid2dNeighborSample<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
fn get_type_id(&self) -> TypeId
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Event for T where
T: Send + Sync + 'static,
T: Send + Sync + 'static,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: Any,
T: Any,
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,