[−][src]Trait ndarray::IntoNdProducer
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 Item
The element produced per iteration.
type Dim: Dimension
Dimension type of the producer
type Output: NdProducer<Dim = Self::Dim, Item = Self::Item>
Required Methods
fn into_producer(self) -> Self::Output
Convert the value into an NdProducer.
Implementations on Foreign Types
impl<'a, A: 'a> IntoNdProducer for &'a [A][src]
impl<'a, A: 'a> IntoNdProducer for &'a [A]A slice is a one-dimensional producer
type Item = <Self::Output as NdProducer>::Item
type Dim = Ix1
type Output = ArrayView1<'a, A>
fn into_producer(self) -> Self::Output[src]
fn into_producer(self) -> Self::Outputimpl<'a, A: 'a> IntoNdProducer for &'a mut [A][src]
impl<'a, A: 'a> IntoNdProducer for &'a mut [A]A mutable slice is a mutable one-dimensional producer
type Item = <Self::Output as NdProducer>::Item
type Dim = Ix1
type Output = ArrayViewMut1<'a, A>
fn into_producer(self) -> Self::Output[src]
fn into_producer(self) -> Self::Outputimpl<'a, A: 'a> IntoNdProducer for &'a Vec<A>[src]
impl<'a, A: 'a> IntoNdProducer for &'a Vec<A>A Vec is a one-dimensional producer
type Item = <Self::Output as NdProducer>::Item
type Dim = Ix1
type Output = ArrayView1<'a, A>
fn into_producer(self) -> Self::Output[src]
fn into_producer(self) -> Self::Outputimpl<'a, A: 'a> IntoNdProducer for &'a mut Vec<A>[src]
impl<'a, A: 'a> IntoNdProducer for &'a mut Vec<A>A mutable Vec is a mutable one-dimensional producer
type Item = <Self::Output as NdProducer>::Item
type Dim = Ix1
type Output = ArrayViewMut1<'a, A>
fn into_producer(self) -> Self::Output[src]
fn into_producer(self) -> Self::OutputImplementors
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>, An array reference is an n-dimensional producer of element references (like ArrayView).
type Item = &'a A
type Dim = D
type Output = ArrayView<'a, A, D>
fn into_producer(self) -> Self::Output[src]
fn into_producer(self) -> Self::Outputimpl<'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>, A mutable array reference is an n-dimensional producer of mutable element references (like ArrayViewMut).
type Item = &'a mut A
type Dim = D
type Output = ArrayViewMut<'a, A, D>
fn into_producer(self) -> Self::Output[src]
fn into_producer(self) -> Self::Outputimpl<P> IntoNdProducer for P where
P: NdProducer, [src]
impl<P> IntoNdProducer for P where
P: NdProducer,