Struct lowdim::Array2d[][src]

pub struct Array2d<S: Integer, T> where
    usize: TryFrom<S>, 
{ /* fields omitted */ }
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.

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 the bounds of the array.

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.

Returns an iterator over the elements of the array.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

Performs the mutable indexing (container[index]) operation. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.