[][src]Struct grid_trait::grid2::backends::heap::ArrayGrid2

pub struct ArrayGrid2<T> { /* fields omitted */ }

Heap-allocated array implementation of Grid2.

Methods

impl<T> ArrayGrid2<T>[src]

pub fn new<I, F>(x_len: i32, y_len: i32, startval: F) -> Self where
    I: From<Vector2<i32>>,
    F: FnMut(I) -> T, 
[src]

pub fn broadcast(x_len: i32, y_len: i32, startval: T) -> Self where
    T: Clone
[src]

Trait Implementations

impl<T> Grid2 for ArrayGrid2<T>[src]

type Item = T

type XBound = Range0To

type YBound = Range0To

impl<T: Clone> Grid2Get for ArrayGrid2<T>[src]

impl<T> Grid2Len for ArrayGrid2<T>[src]

impl<T> Grid2Mut for ArrayGrid2<T>[src]

impl<T> Grid2Ref for ArrayGrid2<T>[src]

impl<T> Grid2Set for ArrayGrid2<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for ArrayGrid2<T> where
    T: RefUnwindSafe

impl<T> Send for ArrayGrid2<T> where
    T: Send

impl<T> Sync for ArrayGrid2<T> where
    T: Sync

impl<T> Unpin for ArrayGrid2<T>

impl<T> UnwindSafe for ArrayGrid2<T> where
    T: 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> Grid2Len for T where
    T: Deref,
    <T as Deref>::Target: Grid2Len
[src]

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

impl<T> Grid2Ref for T where
    T: Deref,
    <T as Deref>::Target: Grid2Ref
[src]

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