pub struct ExternalSorter { /* private fields */ }Implementations§
source§impl ExternalSorter
impl ExternalSorter
sourcepub fn sort<I, T>(
&self,
input: I,
) -> Result<impl ExactSizeIterator<Item = Result<T, ExternalChunkError>>, SortError>
pub fn sort<I, T>( &self, input: I, ) -> Result<impl ExactSizeIterator<Item = Result<T, ExternalChunkError>>, SortError>
Sorts data from the input. Returns an iterator that can be used to get sorted data stream.
§Arguments
input- Input stream data to be fetched from
sourcepub fn sort_by<I, T, F>(
&self,
input: I,
cmp: F,
) -> Result<impl ExactSizeIterator<Item = Result<T, ExternalChunkError>>, SortError>
pub fn sort_by<I, T, F>( &self, input: I, cmp: F, ) -> Result<impl ExactSizeIterator<Item = Result<T, ExternalChunkError>>, SortError>
Sorts a given iterator with a comparator function, returning a new iterator with items
Auto Trait Implementations§
impl Freeze for ExternalSorter
impl !RefUnwindSafe for ExternalSorter
impl Send for ExternalSorter
impl Sync for ExternalSorter
impl Unpin for ExternalSorter
impl !UnwindSafe for ExternalSorter
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