[][src]Struct grid_trait::grid2::combinate::oobhandler::Grid2OobHandler

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

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

Methods

impl<G, I, F> Grid2OobHandler<G, I, F> where
    G: Grid2,
    I: From<Vector2<i32>>,
    F: Fn(I) -> <G as Grid2>::Item
[src]

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

Trait Implementations

impl<G, I, F> Grid2 for Grid2OobHandler<G, I, F> where
    G: Grid2,
    I: From<Vector2<i32>>,
    F: Fn(I) -> <G as Grid2>::Item
[src]

type Item = <G as Grid2>::Item

type XBound = RangeFull

type YBound = RangeFull

impl<G, I, F> Grid2Get for Grid2OobHandler<G, I, F> where
    G: Grid2 + Grid2Get,
    I: From<Vector2<i32>>,
    F: Fn(I) -> <G as Grid2>::Item
[src]

Auto Trait Implementations

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

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

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

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

impl<G, I, F> UnwindSafe for Grid2OobHandler<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> 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> Grid2Get for T where
    T: Deref,
    <T as Deref>::Target: Grid2Get
[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.