Struct lowdim::Array2d [−][src]
Expand description
A two-dimensional 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.
Implementations
Creates a new array with the given bounds that is filled with copies of a given element.
Creates a new array with the given bounds that is filled using a function which takes a location as input.
👎 Deprecated: Use with instead.
Use with instead.
Creates a new array with the given bounds that is filled using a function which takes a location as input.
Creates a new array with the given bounds that is filled using a function which takes a location as input.
Returns a reference to the element at the index or None if the index is out of bounds.
Returns a reference to the element at the index or None if the index is out of bounds.
Trait Implementations
Auto Trait Implementations
impl<S, T> RefUnwindSafe for Array2d<S, T> where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<S, T> UnwindSafe for Array2d<S, T> where
S: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more