pub struct Indices<D> where
D: Dimension, { /* private fields */ }
Expand description
Indices producer and iterable.
Indices
is an NdProducer
that produces the indices of an array shape.
Trait Implementations
sourceimpl<D> IntoIterator for Indices<D> where
D: Dimension,
impl<D> IntoIterator for Indices<D> where
D: Dimension,
sourceimpl<D> NdProducer for Indices<D> where
D: Dimension + Copy,
impl<D> NdProducer for Indices<D> where
D: Dimension + Copy,
type Dim = D
type Dim = D
Dimension type
type Ptr = IndexPtr<D>
type Stride = usize
fn contiguous_stride(&self) -> <Indices<D> as NdProducer>::Stride
sourcefn __private__(&self) -> PrivateMarker
fn __private__(&self) -> PrivateMarker
This trait is private to implement; this method exists to make it impossible to implement outside the crate. Read more
impl<D> Copy for Indices<D> where
D: Copy + Dimension,
Auto Trait Implementations
impl<D> RefUnwindSafe for Indices<D> where
D: RefUnwindSafe,
impl<D> Send for Indices<D>
impl<D> Sync for Indices<D>
impl<D> Unpin for Indices<D> where
D: Unpin,
impl<D> UnwindSafe for Indices<D> where
D: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<P> IntoNdProducer for P where
P: NdProducer,
impl<P> IntoNdProducer for P where
P: NdProducer,
type Item = <P as NdProducer>::Item
type Item = <P as NdProducer>::Item
The element produced per iteration.
type Dim = <P as NdProducer>::Dim
type Dim = <P as NdProducer>::Dim
Dimension type of the producer
type Output = P
sourcefn into_producer(self) -> <P as IntoNdProducer>::Output
fn into_producer(self) -> <P as IntoNdProducer>::Output
Convert the value into an NdProducer
.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more