Enum rayon::slice::mergesort::MergesortResult
source · enum MergesortResult {
NonDescending,
Descending,
Sorted,
}
Expand description
The result of merge sort.
Variants§
NonDescending
The slice has already been sorted.
Descending
The slice has been descending and therefore it was left intact.
Sorted
The slice was sorted.
Trait Implementations§
source§impl Clone for MergesortResult
impl Clone for MergesortResult
source§fn clone(&self) -> MergesortResult
fn clone(&self) -> MergesortResult
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl PartialEq for MergesortResult
impl PartialEq for MergesortResult
source§fn eq(&self, other: &MergesortResult) -> bool
fn eq(&self, other: &MergesortResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MergesortResult
impl Eq for MergesortResult
impl StructuralPartialEq for MergesortResult
Auto Trait Implementations§
impl Freeze for MergesortResult
impl RefUnwindSafe for MergesortResult
impl Send for MergesortResult
impl Sync for MergesortResult
impl Unpin for MergesortResult
impl UnwindSafe for MergesortResult
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