[][src]Struct grid_trait::grid3::combinate::oobhandler::Grid3OobHandler

pub struct Grid3OobHandler<G, I, F> where
    G: Grid3,
    I: From<Vector3<i32>>,
    F: Fn(I) -> <G as Grid3>::Item
{ /* fields omitted */ }

All values outside of a grid are supplied by a function.

Methods

impl<G, I, F> Grid3OobHandler<G, I, F> where
    G: Grid3,
    I: From<Vector3<i32>>,
    F: Fn(I) -> <G as Grid3>::Item
[src]

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

Trait Implementations

impl<G, I, F> Grid3 for Grid3OobHandler<G, I, F> where
    G: Grid3,
    I: From<Vector3<i32>>,
    F: Fn(I) -> <G as Grid3>::Item
[src]

type Item = <G as Grid3>::Item

type XBound = RangeFull

type YBound = RangeFull

type ZBound = RangeFull

impl<G, I, F> Grid3Get for Grid3OobHandler<G, I, F> where
    G: Grid3 + Grid3Get,
    I: From<Vector3<i32>>,
    F: Fn(I) -> <G as Grid3>::Item
[src]

Auto Trait Implementations

impl<G, I, F> RefUnwindSafe for Grid3OobHandler<G, I, F> where
    F: RefUnwindSafe,
    G: RefUnwindSafe

impl<G, I, F> Send for Grid3OobHandler<G, I, F> where
    F: Send,
    G: Send

impl<G, I, F> Sync for Grid3OobHandler<G, I, F> where
    F: Sync,
    G: Sync

impl<G, I, F> Unpin for Grid3OobHandler<G, I, F> where
    F: Unpin,
    G: Unpin

impl<G, I, F> UnwindSafe for Grid3OobHandler<G, I, F> where
    F: UnwindSafe,
    G: 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.