Trait ndarray::IntoNdProducer
source · pub trait IntoNdProducer {
type Item;
type Dim: Dimension;
type Output: NdProducer<Dim = Self::Dim, Item = Self::Item>;
// Required method
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.
Required Associated Types§
type Output: NdProducer<Dim = Self::Dim, Item = Self::Item>
Required Methods§
sourcefn into_producer(self) -> Self::Output
fn into_producer(self) -> Self::Output
Convert the value into an NdProducer
.
Implementations on Foreign Types§
source§impl<'a, A: 'a> IntoNdProducer for &'a mut Vec<A>
impl<'a, A: 'a> IntoNdProducer for &'a mut Vec<A>
A mutable Vec is a mutable one-dimensional producer
source§impl<'a, A: 'a> IntoNdProducer for &'a [A]
impl<'a, A: 'a> IntoNdProducer for &'a [A]
A slice is a one-dimensional producer
source§impl<'a, A: 'a> IntoNdProducer for &'a mut [A]
impl<'a, A: 'a> IntoNdProducer for &'a mut [A]
A mutable slice is a mutable one-dimensional producer
source§impl<'a, A: 'a> IntoNdProducer for &'a Vec<A>
impl<'a, A: 'a> IntoNdProducer for &'a Vec<A>
A Vec is a one-dimensional producer
Implementors§
source§impl<'a, A: 'a, S, D> IntoNdProducer for &'a ArrayBase<S, D>where
D: Dimension,
S: Data<Elem = A>,
impl<'a, A: 'a, S, D> IntoNdProducer for &'a ArrayBase<S, D>where D: Dimension, S: Data<Elem = A>,
An array reference is an n-dimensional producer of element references (like ArrayView).
source§impl<'a, A: 'a, S, D> IntoNdProducer for &'a mut ArrayBase<S, D>where
D: Dimension,
S: DataMut<Elem = A>,
impl<'a, A: 'a, S, D> IntoNdProducer for &'a mut ArrayBase<S, D>where D: Dimension, S: DataMut<Elem = A>,
A mutable array reference is an n-dimensional producer of mutable element references (like ArrayViewMut).