pub type ArrayView<'a, A, D> = ArrayBase<ViewRepr<&'a A>, D>;
Expand description
A read-only array view.
An array view represents an array or a part of it, created from an iterator, subview or slice of an array.
The ArrayView<'a, A, D>
is parameterized by 'a
for the scope of the
borrow, A
for the element type and D
for the dimensionality.
Array views have all the methods of an array (see ArrayBase
).
See also ArrayViewMut
.
Aliased Type§
struct ArrayView<'a, A, D> {
pub(crate) data: ViewRepr<&'a A>,
pub(crate) ptr: NonNull<A>,
pub(crate) dim: D,
pub(crate) strides: D,
}
Fields§
§data: ViewRepr<&'a A>
§ptr: NonNull<A>
§dim: D
§strides: D