[][src]Trait grid_trait::grid3::Grid3Ref

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

2D grid read by reference.

Required methods

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

Loading content...

Provided methods

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

Loading content...

Implementors

impl<'a, F, I, T> Grid3Ref for KolmoRefGrid3<'a, F, I, T> where
    F: Fn(I) -> &'a T,
    T: 'a,
    I: From<Vector3<i32>>, 
[src]

impl<G> Grid3Ref for Grid3Flat<G> where
    G: Grid3 + Grid3Ref,
    <G as Grid3>::Item: Grid3 + Grid3Ref,
    <G as Grid3>::XBound: Clone,
    <G as Grid3>::YBound: Clone,
    <G as Grid3>::ZBound: Clone
[src]

impl<G> Grid3Ref for Grid3NewOrigin<G> where
    G: Grid3 + Grid3Ref,
    <G as Grid3>::XBound: RangeBoundsPlus,
    <G as Grid3>::YBound: RangeBoundsPlus,
    <G as Grid3>::ZBound: RangeBoundsPlus
[src]

impl<G> Grid3Ref for Grid3Wrapping<G> where
    G: Grid3 + Grid3Ref,
    <G as Grid3>::XBound: BoundRange,
    <G as Grid3>::YBound: BoundRange,
    <G as Grid3>::ZBound: BoundRange
[src]

impl<G, X, Y, Z> Grid3Ref for Grid3Slice<G, X, Y, Z> where
    G: Grid3 + Grid3Ref,
    X: RangeBounds<i32> + Clone,
    Y: RangeBounds<i32> + Clone,
    Z: RangeBounds<i32> + Clone
[src]

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

impl<T> Grid3Ref for ArrayGrid3<T>[src]

impl<T> Grid3Ref for Inline3x3x3Grid<T>[src]

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

Loading content...