pub struct LimitedBuffer<T> { /* private fields */ }
Expand description
Buffer limited by elements count.
Implementations§
Trait Implementations§
Source§impl<T: Send> ChunkBuffer<T> for LimitedBuffer<T>
impl<T: Send> ChunkBuffer<T> for LimitedBuffer<T>
Source§impl<T> IntoIterator for LimitedBuffer<T>
impl<T> IntoIterator for LimitedBuffer<T>
Source§impl<T: Send> ParallelSliceMut<T> for LimitedBuffer<T>
impl<T: Send> ParallelSliceMut<T> for LimitedBuffer<T>
Source§fn as_parallel_slice_mut(&mut self) -> &mut [T]
fn as_parallel_slice_mut(&mut self) -> &mut [T]
Returns a plain mutable slice, which is used to implement the rest of
the parallel methods.
Source§fn par_split_mut<P>(&mut self, separator: P) -> SplitMut<'_, T, P>
fn par_split_mut<P>(&mut self, separator: P) -> SplitMut<'_, T, P>
Returns a parallel iterator over mutable subslices separated by
elements that match the separator. Read more
Source§fn par_split_inclusive_mut<P>(
&mut self,
separator: P,
) -> SplitInclusiveMut<'_, T, P>
fn par_split_inclusive_mut<P>( &mut self, separator: P, ) -> SplitInclusiveMut<'_, T, P>
Returns a parallel iterator over mutable subslices separated by elements
that match the separator, including the matched part as a terminator. Read more
Source§fn par_chunks_mut(&mut self, chunk_size: usize) -> ChunksMut<'_, T>
fn par_chunks_mut(&mut self, chunk_size: usize) -> ChunksMut<'_, T>
Returns a parallel iterator over at most
chunk_size
elements of
self
at a time. The chunks are mutable and do not overlap. Read moreSource§fn par_chunks_exact_mut(&mut self, chunk_size: usize) -> ChunksExactMut<'_, T>
fn par_chunks_exact_mut(&mut self, chunk_size: usize) -> ChunksExactMut<'_, T>
Returns a parallel iterator over
chunk_size
elements of
self
at a time. The chunks are mutable and do not overlap. Read moreSource§fn par_rchunks_mut(&mut self, chunk_size: usize) -> RChunksMut<'_, T>
fn par_rchunks_mut(&mut self, chunk_size: usize) -> RChunksMut<'_, T>
Returns a parallel iterator over at most
chunk_size
elements of self
at a time,
starting at the end. The chunks are mutable and do not overlap. Read moreSource§fn par_rchunks_exact_mut(&mut self, chunk_size: usize) -> RChunksExactMut<'_, T>
fn par_rchunks_exact_mut(&mut self, chunk_size: usize) -> RChunksExactMut<'_, T>
Returns a parallel iterator over
chunk_size
elements of self
at a time,
starting at the end. The chunks are mutable and do not overlap. Read moreSource§fn par_sort_by<F>(&mut self, compare: F)
fn par_sort_by<F>(&mut self, compare: F)
Sorts the slice in parallel with a comparator function. Read more
Source§fn par_sort_by_key<K, F>(&mut self, f: F)
fn par_sort_by_key<K, F>(&mut self, f: F)
Sorts the slice in parallel with a key extraction function. Read more
Source§fn par_sort_by_cached_key<K, F>(&mut self, f: F)
fn par_sort_by_cached_key<K, F>(&mut self, f: F)
Sorts the slice in parallel with a key extraction function. Read more
Source§fn par_sort_unstable(&mut self)where
T: Ord,
fn par_sort_unstable(&mut self)where
T: Ord,
Sorts the slice in parallel, but might not preserve the order of equal elements. Read more
Source§fn par_sort_unstable_by<F>(&mut self, compare: F)
fn par_sort_unstable_by<F>(&mut self, compare: F)
Sorts the slice in parallel with a comparator function, but might not preserve the order of
equal elements. Read more
Source§fn par_sort_unstable_by_key<K, F>(&mut self, f: F)
fn par_sort_unstable_by_key<K, F>(&mut self, f: F)
Sorts the slice in parallel with a key extraction function, but might not preserve the order
of equal elements. Read more
Auto Trait Implementations§
impl<T> Freeze for LimitedBuffer<T>
impl<T> RefUnwindSafe for LimitedBuffer<T>where
T: RefUnwindSafe,
impl<T> Send for LimitedBuffer<T>where
T: Send,
impl<T> Sync for LimitedBuffer<T>where
T: Sync,
impl<T> Unpin for LimitedBuffer<T>where
T: Unpin,
impl<T> UnwindSafe for LimitedBuffer<T>where
T: UnwindSafe,
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 more