pub struct OneSidedIter<'a, T: Dist + 'static, A: LamellarArrayInternalGet<T>> { /* private fields */ }Expand description
An immutable one sided iterator of a LamellarArray
This struct is created by calling onesided_iter on any of the LamellarArray types
§Examples
use lamellar::array::prelude::*;
let world = LamellarWorldBuilder::new().build();
let array = AtomicArray::<usize>::new(&world,100,Distribution::Block).block();
let one_sided_iter = array.onesided_iter();Trait Implementations§
Source§impl<'a, T: Dist + 'static, A: LamellarArrayInternalGet<T> + Clone + Send> OneSidedIterator for OneSidedIter<'a, T, A>
impl<'a, T: Dist + 'static, A: LamellarArrayInternalGet<T> + Clone + Send> OneSidedIterator for OneSidedIter<'a, T, A>
Source§fn chunks(self, chunk_size: usize) -> Chunks<Self>
fn chunks(self, chunk_size: usize) -> Chunks<Self>
Split an iterator into fixed-sized chunks Read more
Source§fn skip(self, count: usize) -> Skip<Self>
fn skip(self, count: usize) -> Skip<Self>
An iterator that skips the first
n elements Read moreSource§fn step_by(self, step_size: usize) -> StepBy<Self>
fn step_by(self, step_size: usize) -> StepBy<Self>
An iterator that steps by
step_size elements Read moreSource§fn zip<I>(self, iter: I) -> Zip<Self, I>
fn zip<I>(self, iter: I) -> Zip<Self, I>
Iterates over tuples
(A,B) where the A items are from self iterator and the B items are from the iter in the argument.
If the two iterators or of unequal length, the returned iterator will be equal in length to the shorter of the two. Read moreSource§fn into_iter(self) -> OneSidedIteratorIter<Self> ⓘ
fn into_iter(self) -> OneSidedIteratorIter<Self> ⓘ
Source§fn into_stream(self) -> OneSidedStream<Self>
fn into_stream(self) -> OneSidedStream<Self>
impl<'pin, 'a, T: Dist + 'static, A: LamellarArrayInternalGet<T>> Unpin for OneSidedIter<'a, T, A>where
PinnedFieldsOf<__OneSidedIter<'pin, 'a, T, A>>: Unpin,
Auto Trait Implementations§
impl<'a, T, A> !RefUnwindSafe for OneSidedIter<'a, T, A>
impl<'a, T, A> !Sync for OneSidedIter<'a, T, A>
impl<'a, T, A> !UnwindSafe for OneSidedIter<'a, T, A>
impl<'a, T, A> Freeze for OneSidedIter<'a, T, A>where
A: Freeze,
impl<'a, T, A> Send for OneSidedIter<'a, T, A>where
A: Send,
impl<'a, T, A> UnsafeUnpin for OneSidedIter<'a, T, A>where
A: UnsafeUnpin,
Blanket Implementations§
Source§impl<T, U> AsyncTeamInto<U> for Twhere
T: Send,
U: AsyncTeamFrom<T>,
impl<T, U> AsyncTeamInto<U> for Twhere
T: Send,
U: AsyncTeamFrom<T>,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> TeamInto<U> for Twhere
U: TeamFrom<T>,
impl<T, U> TeamInto<U> for Twhere
U: TeamFrom<T>,
Source§fn team_into(self, team: &Arc<LamellarTeam>) -> U
fn team_into(self, team: &Arc<LamellarTeam>) -> U
converts this type into the (usually inferred) input type
Source§impl<T, U> TeamTryInto<U> for Twhere
U: TeamTryFrom<T>,
impl<T, U> TeamTryInto<U> for Twhere
U: TeamTryFrom<T>,
Source§fn team_try_into(self, team: &Arc<LamellarTeam>) -> Result<U, Error>
fn team_try_into(self, team: &Arc<LamellarTeam>) -> Result<U, Error>
Trys to convert this type into the (usually inferred) input type