Type Definition ndarray::ArrayView
[−]
[src]
type ArrayView<'a, A, D> = ArrayBase<ViewRepr<&'a A>, D>;
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 Methods Specific To Array Views
Trait Implementations
impl<'a, A, D> IntoIterator for ArrayView<'a, A, D> where
D: Dimension,
[src]
D: Dimension,
type Item = &'a A
The type of the elements being iterated over.
type IntoIter = Iter<'a, A, D>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more
impl<'a, A, D: Dimension> NdProducer for ArrayView<'a, A, D>
[src]
type Item = &'a A
The element produced per iteration.
type Dim = D
Dimension type
type Ptr = *mut A
type Stride = isize
fn contiguous_stride(&self) -> Self::Stride
fn __private__(&self) -> PrivateMarker
This trait is private to implement; this method exists to make it impossible to implement outside the crate. Read more