[][src]Struct grid_trait::grid3::backends::kolmomut::KolmoMutGrid3

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

Kolmogorov by-mutable-reference encoding of Grid3.

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

Methods

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

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

Trait Implementations

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

type Item = T

type XBound = RangeFull

type YBound = RangeFull

type ZBound = RangeFull

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

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

Auto Trait Implementations

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

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

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

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

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

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

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

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

type ZBound = <<T as Deref>::Target as Grid3>::ZBound

impl<T> Grid3Mut for T where
    T: Deref + DerefMut,
    <T as Deref>::Target: Grid3Mut
[src]

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