[][src]Struct grid_trait::grid2::backends::kolmoref::KolmoRefGrid2

pub struct KolmoRefGrid2<'a, F, I, T> where
    F: Fn(I) -> &'a T,
    T: 'a,
    I: From<Vector2<i32>>, 
{ /* fields omitted */ }

Kolmogorov by-reference encoding of Grid2.

This is a Grid2 implementation which only stores a function from coordinate to value. It is subsequently unbounded.

Methods

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

pub fn new(func: F) -> Self[src]

Trait Implementations

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

type Item = T

type XBound = RangeFull

type YBound = RangeFull

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

Auto Trait Implementations

impl<'a, F, I, T> RefUnwindSafe for KolmoRefGrid2<'a, F, I, T> where
    F: RefUnwindSafe

impl<'a, F, I, T> Send for KolmoRefGrid2<'a, F, I, T> where
    F: Send

impl<'a, F, I, T> Sync for KolmoRefGrid2<'a, F, I, T> where
    F: Sync

impl<'a, F, I, T> Unpin for KolmoRefGrid2<'a, F, I, T> where
    F: Unpin

impl<'a, F, I, T> UnwindSafe for KolmoRefGrid2<'a, F, I, T> where
    F: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

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

type Item = <<T as Deref>::Target as Grid2>::Item

type XBound = <<T as Deref>::Target as Grid2>::XBound

type YBound = <<T as Deref>::Target as Grid2>::YBound

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.