Skip to main content

OneSidedIter

Struct OneSidedIter 

Source
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>

Source§

fn chunks(self, chunk_size: usize) -> Chunks<Self>
where Self: Sized + Send,

Split an iterator into fixed-sized chunks Read more
Source§

fn skip(self, count: usize) -> Skip<Self>
where Self: Sized + Send,

An iterator that skips the first n elements Read more
Source§

fn step_by(self, step_size: usize) -> StepBy<Self>
where Self: Sized + Send,

An iterator that steps by step_size elements Read more
Source§

fn zip<I>(self, iter: I) -> Zip<Self, I>
where Self: Sized + Send, I: OneSidedIterator + Sized + Send,

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 more
Source§

fn into_iter(self) -> OneSidedIteratorIter<Self>
where Self: Sized + Send,

Convert a one-sided iterator into a standard Rust Iterator, enabling one to use any of the functions available on Iterators Read more
Source§

fn into_stream(self) -> OneSidedStream<Self>
where Self: Sized + Send,

Convert a one-sided iterator into a standard Rust Stream for iteration in async contexts, enabling one to use any of the functions available on Streams Read more
Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T, U> AsyncTeamInto<U> for T
where T: Send, U: AsyncTeamFrom<T>,

Source§

fn team_into<'life0, 'async_trait>( self, team: &'life0 Arc<LamellarTeam>, ) -> Pin<Box<dyn Future<Output = U> + Send + 'async_trait>>
where 'life0: 'async_trait, T: 'async_trait,

converts this type into the (usually inferred) input type
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TeamInto<U> for T
where U: TeamFrom<T>,

Source§

fn team_into(self, team: &Arc<LamellarTeam>) -> U

converts this type into the (usually inferred) input type
Source§

impl<T, U> TeamTryInto<U> for T
where U: TeamTryFrom<T>,

Source§

fn team_try_into(self, team: &Arc<LamellarTeam>) -> Result<U, Error>

Trys to convert this type into the (usually inferred) input type
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V