[][src]Struct grid_trait::grid3::backends::kolmoref::KolmoRefGrid3

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

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

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

Trait Implementations

impl<'a, F, I, T> Grid3 for KolmoRefGrid3<'a, F, I, T> where
    F: Fn(I) -> &'a 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> Grid3Get for KolmoRefGrid3<'a, F, I, T> where
    F: Fn(I) -> &'a T,
    T: Clone + 'a,
    I: From<Vector3<i32>>, 
[src]

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]

Auto Trait Implementations

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

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

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

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

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

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