Type Alias Array

Source
pub type Array<A, D> = ArrayBase<OwnedRepr<A>, D>;
Expand description

An array that owns its data uniquely.

Array is the main n-dimensional array type, and it owns all its array elements.

The Array<A, D> is parameterized by A for the element type and D for the dimensionality.

ArrayBase is used to implement both the owned arrays and the views; see its docs for an overview of all array features.

See also:

Aliased Type§

pub struct Array<A, D> { /* private fields */ }

Trait Implementations§

Source§

impl<A, D> AsBytes for Array<A, D>
where A: Pod, D: Dimension,

Source§

fn as_bytes(&self) -> &[u8]

Returns the data as a byte slice.
Source§

fn byte_size(&self) -> usize

Returns the byte length of the data.
Source§

fn len(&self) -> usize

Length in number of scalars of the data type. For flat structures it’s equal to number of elements( components ). For multidimensional structures it’s not equal to number of elements( components ).