Trait ndarray::IntoNdProducer [−][src]
pub trait IntoNdProducer { type Item; type Dim: Dimension; type Output: NdProducer<Dim = Self::Dim, Item = Self::Item>; fn into_producer(self) -> Self::Output; }
Expand description
Argument conversion into a producer.
Slices and vectors can be used (equivalent to 1-dimensional array views).
This trait is like IntoIterator
for NdProducers
instead of iterators.
Associated Types
type Output: NdProducer<Dim = Self::Dim, Item = Self::Item>
[src]Required methods
fn into_producer(self) -> Self::Output
[src]
fn into_producer(self) -> Self::Output
[src]Convert the value into an NdProducer
.
Implementations on Foreign Types
A slice is a one-dimensional producer
type Item = <Self::Output as NdProducer>::Item
type Output = ArrayView1<'a, A>
A mutable slice is a mutable one-dimensional producer
type Item = <Self::Output as NdProducer>::Item
type Output = ArrayViewMut1<'a, A>
A Vec is a one-dimensional producer
type Item = <Self::Output as NdProducer>::Item
type Output = ArrayView1<'a, A>
A mutable Vec is a mutable one-dimensional producer
type Item = <Self::Output as NdProducer>::Item
type Output = ArrayViewMut1<'a, A>
Implementors
impl<'a, A: 'a, S, D> IntoNdProducer for &'a ArrayBase<S, D> where
D: Dimension,
S: Data<Elem = A>,
[src]
impl<'a, A: 'a, S, D> IntoNdProducer for &'a ArrayBase<S, D> where
D: Dimension,
S: Data<Elem = A>,
[src]An array reference is an n-dimensional producer of element references (like ArrayView).
impl<'a, A: 'a, S, D> IntoNdProducer for &'a mut ArrayBase<S, D> where
D: Dimension,
S: DataMut<Elem = A>,
[src]
impl<'a, A: 'a, S, D> IntoNdProducer for &'a mut ArrayBase<S, D> where
D: Dimension,
S: DataMut<Elem = A>,
[src]A mutable array reference is an n-dimensional producer of mutable element references (like ArrayViewMut).