extendr_api::prelude

Type Alias ArrayView

Source
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> { /* private fields */ }