Trait rerun::external::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> IntoNdProducer for &'a [A]where
A: 'a,
impl<'a, A> IntoNdProducer for &'a [A]where
A: 'a,
A slice is a one-dimensional producer
source§impl<'a, A> IntoNdProducer for &'a Vec<A>where
A: 'a,
impl<'a, A> IntoNdProducer for &'a Vec<A>where
A: 'a,
A Vec is a one-dimensional producer
source§impl<'a, A> IntoNdProducer for &'a mut [A]where
A: 'a,
impl<'a, A> IntoNdProducer for &'a mut [A]where
A: 'a,
A mutable slice is a mutable one-dimensional producer
source§impl<'a, A> IntoNdProducer for &'a mut Vec<A>where
A: 'a,
impl<'a, A> IntoNdProducer for &'a mut Vec<A>where
A: 'a,
A mutable Vec is a mutable one-dimensional producer
source§impl<'a, A, const N: usize> IntoNdProducer for &'a [A; N]where
A: 'a,
impl<'a, A, const N: usize> IntoNdProducer for &'a [A; N]where
A: 'a,
A one-dimensional array is a one-dimensional producer
source§impl<'a, A, const N: usize> IntoNdProducer for &'a mut [A; N]where
A: 'a,
impl<'a, A, const N: usize> IntoNdProducer for &'a mut [A; N]where
A: 'a,
A mutable one-dimensional array is a mutable one-dimensional producer
Implementors§
source§impl<'a, A, S, D> IntoNdProducer for &'a ArrayBase<S, D>
impl<'a, A, S, D> IntoNdProducer for &'a ArrayBase<S, D>
An array reference is an n-dimensional producer of element references (like ArrayView).
source§impl<'a, A, S, D> IntoNdProducer for &'a mut ArrayBase<S, D>
impl<'a, A, S, D> IntoNdProducer for &'a mut ArrayBase<S, D>
A mutable array reference is an n-dimensional producer of mutable element references (like ArrayViewMut).