[][src]Trait grid_trait::grid2::Grid2Ref

pub trait Grid2Ref: Grid2 {
    fn idx<I>(&self, coord: I) -> &Self::Item
    where
        I: Into<Vector2<i32>>
; fn try_idx<I>(&self, coord: I) -> Option<&Self::Item>
    where
        I: Into<Vector2<i32>>
, { ... } }

2D grid read by reference.

Required methods

fn idx<I>(&self, coord: I) -> &Self::Item where
    I: Into<Vector2<i32>>, 

Loading content...

Provided methods

fn try_idx<I>(&self, coord: I) -> Option<&Self::Item> where
    I: Into<Vector2<i32>>, 

Loading content...

Implementors

impl<'a, F, I, T> Grid2Ref for KolmoRefGrid2<'a, F, I, T> where
    F: Fn(I) -> &'a T,
    T: 'a,
    I: From<Vector2<i32>>, 
[src]

impl<G> Grid2Ref for Grid2Flat<G> where
    G: Grid2 + Grid2Ref,
    <G as Grid2>::Item: Grid2 + Grid2Ref,
    <G as Grid2>::XBound: Clone,
    <G as Grid2>::YBound: Clone
[src]

impl<G> Grid2Ref for Grid2NewOrigin<G> where
    G: Grid2 + Grid2Ref,
    <G as Grid2>::XBound: RangeBoundsPlus,
    <G as Grid2>::YBound: RangeBoundsPlus
[src]

impl<G> Grid2Ref for Grid2Wrapping<G> where
    G: Grid2 + Grid2Ref,
    <G as Grid2>::XBound: BoundRange,
    <G as Grid2>::YBound: BoundRange
[src]

impl<G, X, Y> Grid2Ref for Grid2Slice<G, X, Y> where
    G: Grid2 + Grid2Ref,
    X: RangeBounds<i32> + Clone,
    Y: RangeBounds<i32> + Clone
[src]

impl<I, R, T, Fr, Fw> Grid2Ref for KolmoRwGrid2<I, R, T, Fr, Fw> where
    Fr: Fn(I, &R) -> &T,
    Fw: FnMut(I, &mut R) -> &mut T,
    I: From<Vector2<i32>>, 
[src]

impl<T> Grid2Ref for ArrayGrid2<T>[src]

impl<T> Grid2Ref for Inline3x3Grid<T>[src]

impl<T> Grid2Ref for T where
    T: Deref,
    <T as Deref>::Target: Grid2Ref
[src]

Loading content...