[][src]Trait grid_trait::grid2::Grid2Get

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

2D grid read by value.

Required methods

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

Loading content...

Provided methods

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

Loading content...

Implementors

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

impl<F, I, T> Grid2Get for KolmoGrid2<F, I, T> where
    F: Fn(I) -> T,
    I: From<Vector2<i32>>, 
[src]

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

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

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

impl<G, F, T> Grid2Get for Grid2Map<G, F, T> where
    G: Grid2 + Grid2Get,
    F: Fn(<G as Grid2>::Item) -> T, 
[src]

impl<G, F, T, I> Grid2Get for Grid2EnuMap<G, F, T, I> where
    G: Grid2 + Grid2Get,
    I: From<Vector2<i32>>,
    F: Fn(I, <G as Grid2>::Item) -> T, 
[src]

impl<G, I, F> Grid2Get for Grid2OobHandler<G, I, F> where
    G: Grid2 + Grid2Get,
    I: From<Vector2<i32>>,
    F: Fn(I) -> <G as Grid2>::Item
[src]

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

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

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

impl<T: Clone> Grid2Get for ArrayGrid2<T>[src]

impl<T: Clone> Grid2Get for Inline3x3Grid<T>[src]

Loading content...