pub struct ConIterJaggedOwned<T, X>{ /* private fields */ }
Expand description
Flattened concurrent iterator of a raw jagged array yielding owned elements.
Ensures that all elements are dropped regardless of whether they are iterated over or skipped. Further, cleans up the allocations of the jagged array.
Trait Implementations§
Source§impl<T, X> ConcurrentIter for ConIterJaggedOwned<T, X>
impl<T, X> ConcurrentIter for ConIterJaggedOwned<T, X>
Source§type SequentialIter = RawJaggedIterOwned<T, X>
type SequentialIter = RawJaggedIterOwned<T, X>
Type of the sequential iterator that the concurrent iterator can be converted
into using the
into_seq_iter
method.Source§type ChunkPuller<'i> = ChunkPullerJaggedOwned<'i, T, X>
where
Self: 'i
type ChunkPuller<'i> = ChunkPullerJaggedOwned<'i, T, X> where Self: 'i
Type of the chunk puller that can be created using the
chunk_puller
method.Source§fn into_seq_iter(self) -> Self::SequentialIter
fn into_seq_iter(self) -> Self::SequentialIter
Converts the concurrent iterator into its sequential regular counterpart.
Note that the sequential iterator is a regular
Iterator
, and hence,
does not have any overhead related with atomic states. Therefore, it is
useful where the program decides to iterate over a single thread rather
than concurrently by multiple threads. Read moreSource§fn skip_to_end(&self)
fn skip_to_end(&self)
Immediately jumps to the end of the iterator, skipping the remaining elements. Read more
Source§fn next(&self) -> Option<Self::Item>
fn next(&self) -> Option<Self::Item>
Returns the next element of the iterator.
It returns None if there are no more elements left. Read more
Source§fn next_with_idx(&self) -> Option<(usize, Self::Item)>
fn next_with_idx(&self) -> Option<(usize, Self::Item)>
Returns the next element of the iterator together its index.
It returns None if there are no more elements left. Read more
Source§fn size_hint(&self) -> (usize, Option<usize>)
fn size_hint(&self) -> (usize, Option<usize>)
Returns the bounds on the remaining length of the iterator. Read more
Source§fn chunk_puller(&self, chunk_size: usize) -> Self::ChunkPuller<'_>
fn chunk_puller(&self, chunk_size: usize) -> Self::ChunkPuller<'_>
Creates a
ChunkPuller
from the concurrent iterator.
The created chunk puller can be used to pull
chunk_size
elements at once from the
data source, rather than pulling one by one. Read moreSource§fn try_get_len(&self) -> Option<usize>
fn try_get_len(&self) -> Option<usize>
Returns
Some(x)
if the number of remaining items is known with certainly and if it
is equal to x
. Read moreSource§fn item_puller(&self) -> ItemPuller<'_, Self> ⓘwhere
Self: Sized,
fn item_puller(&self) -> ItemPuller<'_, Self> ⓘwhere
Self: Sized,
Creates a
ItemPuller
from the concurrent iterator.
The created item puller can be used to pull elements one by one from the
data source. Read moreSource§fn item_puller_with_idx(&self) -> EnumeratedItemPuller<'_, Self> ⓘwhere
Self: Sized,
fn item_puller_with_idx(&self) -> EnumeratedItemPuller<'_, Self> ⓘwhere
Self: Sized,
Creates a
EnumeratedItemPuller
from the concurrent iterator.
The created item puller can be used to pull
elements one by one from the
data source together with the index of the elements. Read moreSource§fn copied<'a, T>(self) -> ConIterCopied<'a, Self, T>
fn copied<'a, T>(self) -> ConIterCopied<'a, Self, T>
Creates an iterator which copies all of its elements. Read more
Source§fn cloned<'a, T>(self) -> ConIterCloned<'a, Self, T>
fn cloned<'a, T>(self) -> ConIterCloned<'a, Self, T>
Creates an iterator which clones all of its elements. Read more
Source§impl<T, X> Drop for ConIterJaggedOwned<T, X>
impl<T, X> Drop for ConIterJaggedOwned<T, X>
Source§impl<T, X> ExactSizeConcurrentIter for ConIterJaggedOwned<T, X>
impl<T, X> ExactSizeConcurrentIter for ConIterJaggedOwned<T, X>
impl<T, X> Send for ConIterJaggedOwned<T, X>
impl<T, X> Sync for ConIterJaggedOwned<T, X>
Auto Trait Implementations§
impl<T, X> !Freeze for ConIterJaggedOwned<T, X>
impl<T, X> RefUnwindSafe for ConIterJaggedOwned<T, X>where
X: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, X> Unpin for ConIterJaggedOwned<T, X>where
X: Unpin,
impl<T, X> UnwindSafe for ConIterJaggedOwned<T, X>where
X: UnwindSafe,
T: 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