[][src]Struct grid_trait::grid3::backends::kolmo::KolmoGrid3

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

Kolmogorov encoding of Grid3.

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

Methods

impl<F, I, T> KolmoGrid3<F, I, T> where
    F: Fn(I) -> T,
    I: From<Vector3<i32>>, 
[src]

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

Trait Implementations

impl<F, I, T> Grid3 for KolmoGrid3<F, I, T> where
    F: Fn(I) -> T,
    I: From<Vector3<i32>>, 
[src]

type Item = T

type XBound = RangeFull

type YBound = RangeFull

type ZBound = RangeFull

impl<F, I, T> Grid3Get for KolmoGrid3<F, I, T> where
    F: Fn(I) -> T,
    I: From<Vector3<i32>>, 
[src]

Auto Trait Implementations

impl<F, I, T> RefUnwindSafe for KolmoGrid3<F, I, T> where
    F: RefUnwindSafe

impl<F, I, T> Send for KolmoGrid3<F, I, T> where
    F: Send

impl<F, I, T> Sync for KolmoGrid3<F, I, T> where
    F: Sync

impl<F, I, T> Unpin for KolmoGrid3<F, I, T> where
    F: Unpin

impl<F, I, T> UnwindSafe for KolmoGrid3<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, 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.