pub struct ReadSlice<'a, C, O = Vec<<C as Region>::Index>>(/* private fields */)
where
C: Region,
O: OffsetContainer<<C as Region>::Index>;
Expand description
A helper to read data out of a slice region.
Implementations§
source§impl<C, O> ReadSlice<'_, C, O>
impl<C, O> ReadSlice<'_, C, O>
sourcepub fn get(&self, index: usize) -> <C as Region>::ReadItem<'_>
pub fn get(&self, index: usize) -> <C as Region>::ReadItem<'_>
Read the n-th item from the underlying region.
§Panics
Panics if the index is out of bounds, i.e., it is larger than the length of this slice representation.
sourcepub fn iter(&self) -> <ReadSlice<'_, C, O> as IntoIterator>::IntoIter
pub fn iter(&self) -> <ReadSlice<'_, C, O> as IntoIterator>::IntoIter
Returns an iterator over all contained items.
Trait Implementations§
source§impl<'a, C, O> IntoIterator for ReadSlice<'a, C, O>
impl<'a, C, O> IntoIterator for ReadSlice<'a, C, O>
source§impl<'a, C, O> IntoOwned<'a> for ReadSlice<'a, C, O>
impl<'a, C, O> IntoOwned<'a> for ReadSlice<'a, C, O>
source§impl<R, O> Ord for ReadSlice<'_, R, O>
impl<R, O> Ord for ReadSlice<'_, R, O>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<R, O> PartialEq for ReadSlice<'_, R, O>
impl<R, O> PartialEq for ReadSlice<'_, R, O>
source§impl<R, O> PartialOrd for ReadSlice<'_, R, O>where
R: Region,
O: OffsetContainer<<R as Region>::Index>,
<R as Region>::ReadItem<'a>: for<'a> PartialOrd,
impl<R, O> PartialOrd for ReadSlice<'_, R, O>where
R: Region,
O: OffsetContainer<<R as Region>::Index>,
<R as Region>::ReadItem<'a>: for<'a> PartialOrd,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a, C, O> Push<ReadSlice<'a, C, O>> for SliceRegion<C, O>
impl<'a, C, O> Push<ReadSlice<'a, C, O>> for SliceRegion<C, O>
source§impl<'a, R, O> ReserveItems<ReadSlice<'a, R, O>> for SliceRegion<R, O>where
R: Region + ReserveItems<<R as Region>::ReadItem<'a>> + 'a,
O: OffsetContainer<<R as Region>::Index>,
impl<'a, R, O> ReserveItems<ReadSlice<'a, R, O>> for SliceRegion<R, O>where
R: Region + ReserveItems<<R as Region>::ReadItem<'a>> + 'a,
O: OffsetContainer<<R as Region>::Index>,
impl<C, O> Copy for ReadSlice<'_, C, O>
impl<R, O> Eq for ReadSlice<'_, R, O>
Auto Trait Implementations§
impl<'a, C, O> Freeze for ReadSlice<'a, C, O>
impl<'a, C, O> RefUnwindSafe for ReadSlice<'a, C, O>
impl<'a, C, O> Send for ReadSlice<'a, C, O>
impl<'a, C, O> Sync for ReadSlice<'a, C, O>
impl<'a, C, O> Unpin for ReadSlice<'a, C, O>
impl<'a, C, O> UnwindSafe for ReadSlice<'a, C, O>
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, I> MutableAntichainFilter<T> for I
impl<T, I> MutableAntichainFilter<T> for I
source§fn filter_through(
self,
antichain: &mut MutableAntichain<T>
) -> Drain<'_, (T, i64)>
fn filter_through( self, antichain: &mut MutableAntichain<T> ) -> Drain<'_, (T, i64)>
Filters time changes through an antichain. Read more
source§impl<T> ProgressEventTimestamp for T
impl<T> ProgressEventTimestamp for T
source§impl<I> ToStream<<I as IntoIterator>::Item> for I
impl<I> ToStream<<I as IntoIterator>::Item> for I
source§fn to_stream<S>(
self,
scope: &mut S
) -> StreamCore<S, Vec<<I as IntoIterator>::Item>>where
S: Scope,
fn to_stream<S>(
self,
scope: &mut S
) -> StreamCore<S, Vec<<I as IntoIterator>::Item>>where
S: Scope,
Converts to a timely
Stream
. Read moresource§impl<C, I> ToStream<C> for I
impl<C, I> ToStream<C> for I
source§fn to_stream<S>(self, scope: &mut S) -> StreamCore<S, C>where
S: Scope,
fn to_stream<S>(self, scope: &mut S) -> StreamCore<S, C>where
S: Scope,
Converts to a timely StreamCore. Read more
source§impl<CB, I> ToStreamBuilder<CB> for I
impl<CB, I> ToStreamBuilder<CB> for I
source§fn to_stream_with_builder<S>(
self,
scope: &mut S
) -> StreamCore<S, <CB as ContainerBuilder>::Container>where
S: Scope,
fn to_stream_with_builder<S>(
self,
scope: &mut S
) -> StreamCore<S, <CB as ContainerBuilder>::Container>where
S: Scope,
Converts to a timely StreamCore, using the supplied container builder type. Read more