Type Alias Array2d

Source
pub type Array2d<S, T, L = <Vec2d<S> as Vector<S>>::DefaultLayout> = Array<S, Vec2d<S>, T, L>;
Expand description

A 2d array indexed by points in a bounding box.

The starting index and size is given by a rectangle, i.e. x- and y-index don’t need to start at zero.

Aliased Type§

pub struct Array2d<S, T, L = <Vec2d<S> as Vector<S>>::DefaultLayout> { /* private fields */ }

Implementations§

Source§

impl<S, T> Array2d<S, T, <Vec2d<S> as Vector<S>>::DefaultLayout>
where S: Integer,

Source

pub fn from_vec(v: Vec<Vec<T>>) -> Self
where T: Copy, <S as TryFrom<usize>>::Error: Debug, usize: TryFrom<S>, <usize as TryFrom<S>>::Error: Debug,

Creates a new array with the given bounds that is filled from a vector of vectors.