Struct ext_sort::buffer::LimitedBuffer
source · 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>where
P: Fn(&T) -> bool + Sync + Send,
fn par_split_mut<P>(&mut self, separator: P) -> SplitMut<'_, T, P>where P: Fn(&T) -> bool + Sync + Send,
Returns a parallel iterator over mutable subslices separated by
elements that match the separator. 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)where
F: Fn(&T, &T) -> Ordering + Sync,
fn par_sort_by<F>(&mut self, compare: F)where F: Fn(&T, &T) -> Ordering + Sync,
Sorts the slice in parallel with a comparator function. Read more
source§fn par_sort_by_key<K, F>(&mut self, f: F)where
K: Ord,
F: Fn(&T) -> K + Sync,
fn par_sort_by_key<K, F>(&mut self, f: F)where K: Ord, F: Fn(&T) -> K + Sync,
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)where
F: Fn(&T) -> K + Sync,
K: Ord + Send,
fn par_sort_by_cached_key<K, F>(&mut self, f: F)where F: Fn(&T) -> K + Sync, K: Ord + Send,
Sorts the slice in parallel with a key extraction function. Read more