[][src]Struct grid_trait::grid2::backends::kolmomut::KolmoMutGrid2

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

Kolmogorov by-mutable-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> KolmoMutGrid2<'a, F, I, T> where
    F: Fn(I) -> &'a mut T,
    T: 'a,
    I: From<Vector2<i32>>, 
[src]

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

Trait Implementations

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

type Item = T

type XBound = RangeFull

type YBound = RangeFull

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

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

Auto Trait Implementations

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

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

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

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

impl<'a, F, I, T> UnwindSafe for KolmoMutGrid2<'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> Grid2Mut for T where
    T: Deref + DerefMut,
    <T as Deref>::Target: Grid2Mut
[src]

impl<T> Grid2Set for T where
    T: Deref + DerefMut,
    <T as Deref>::Target: Grid2Set
[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.