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;
}

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

The element produced per iteration.

Dimension type of the producer

Required Methods

Convert the value into an NdProducer.

Implementations on Foreign Types

impl<'a, A: 'a> IntoNdProducer for &'a [A]
[src]

A slice is a one-dimensional producer

[src]

impl<'a, A: 'a> IntoNdProducer for &'a mut [A]
[src]

A mutable slice is a mutable one-dimensional producer

[src]

impl<'a, A: 'a> IntoNdProducer for &'a Vec<A>
[src]

A Vec is a one-dimensional producer

[src]

impl<'a, A: 'a> IntoNdProducer for &'a mut Vec<A>
[src]

A mutable Vec is a mutable one-dimensional producer

[src]

Implementors