pub enum SortingResultKind<T: Ord + Copy + Sync + Send + Debug + Clone + PartialEq> {
SortingWasOkKindResult(Vec<T>),
SortingWasIncompleteKindResult(Vec<T>),
SortingWasErroneousKindResult(Box<dyn Error>),
}Expand description
A SortingResultKind defines the Result of a Sorting
Variantsยง
SortingWasOkKindResult(Vec<T>)
The Sorting was Successful, contains sorted data
SortingWasIncompleteKindResult(Vec<T>)
The Sorting was Incomplete, contains possibly partially data
SortingWasErroneousKindResult(Box<dyn Error>)
The Sorting was Erroneous, contains a Error value
Implementationsยง
Trait Implementationsยง
Sourceยงimpl<T: Debug + Ord + Copy + Sync + Send + Debug + Clone + PartialEq> Debug for SortingResultKind<T>
impl<T: Debug + Ord + Copy + Sync + Send + Debug + Clone + PartialEq> Debug for SortingResultKind<T>
Sourceยงimpl<'a, T: Ord + Copy + Sync + Send + Debug + Clone + PartialEq, C: ?Sized> From<SortingResult<'a, T, C>> for SortingResultKind<T>
impl<'a, T: Ord + Copy + Sync + Send + Debug + Clone + PartialEq, C: ?Sized> From<SortingResult<'a, T, C>> for SortingResultKind<T>
Sourceยงfn from(value: SortingResult<'a, T, C>) -> Self
fn from(value: SortingResult<'a, T, C>) -> Self
Converts to this type from the input type.
Auto Trait Implementationsยง
impl<T> Freeze for SortingResultKind<T>
impl<T> !RefUnwindSafe for SortingResultKind<T>
impl<T> !Send for SortingResultKind<T>
impl<T> !Sync for SortingResultKind<T>
impl<T> Unpin for SortingResultKind<T>where
T: Unpin,
impl<T> !UnwindSafe for SortingResultKind<T>
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