Struct extendr_api::prelude::iter::ExactChunks
source · pub struct ExactChunks<'a, A, D> {
base: ArrayBase<ViewRepr<&'a A>, D>,
chunk: D,
inner_strides: D,
}
Expand description
Exact chunks producer and iterable.
See .exact_chunks()
for more
information.
Fields§
§base: ArrayBase<ViewRepr<&'a A>, D>
§chunk: D
§inner_strides: D
Trait Implementations§
source§impl<'a, A, D> Clone for ExactChunks<'a, A, D>where
D: Clone,
impl<'a, A, D> Clone for ExactChunks<'a, A, D>where
D: Clone,
source§fn clone(&self) -> ExactChunks<'a, A, D>
fn clone(&self) -> ExactChunks<'a, A, D>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a, A, D> IntoIterator for ExactChunks<'a, A, D>where
D: Dimension,
A: 'a,
impl<'a, A, D> IntoIterator for ExactChunks<'a, A, D>where
D: Dimension,
A: 'a,
§type Item = <<ExactChunks<'a, A, D> as IntoIterator>::IntoIter as Iterator>::Item
type Item = <<ExactChunks<'a, A, D> as IntoIterator>::IntoIter as Iterator>::Item
The type of the elements being iterated over.
§type IntoIter = ExactChunksIter<'a, A, D>
type IntoIter = ExactChunksIter<'a, A, D>
Which kind of iterator are we turning this into?
source§fn into_iter(self) -> <ExactChunks<'a, A, D> as IntoIterator>::IntoIter
fn into_iter(self) -> <ExactChunks<'a, A, D> as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
Auto Trait Implementations§
impl<'a, A, D> Freeze for ExactChunks<'a, A, D>where
D: Freeze,
impl<'a, A, D> RefUnwindSafe for ExactChunks<'a, A, D>where
D: RefUnwindSafe,
A: RefUnwindSafe,
impl<'a, A, D> Send for ExactChunks<'a, A, D>
impl<'a, A, D> Sync for ExactChunks<'a, A, D>
impl<'a, A, D> Unpin for ExactChunks<'a, A, D>where
D: Unpin,
impl<'a, A, D> UnwindSafe for ExactChunks<'a, A, D>where
D: UnwindSafe,
A: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<P> IntoNdProducer for Pwhere
P: NdProducer,
impl<P> IntoNdProducer for Pwhere
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
source§fn into_producer(self) -> <P as IntoNdProducer>::Output
fn into_producer(self) -> <P as IntoNdProducer>::Output
Convert the value into an
NdProducer
.