pub enum SortError<E> {
Resource(MemoryError),
Comparison(E),
}Expand description
A refused sort, preserving the comparator’s own error and provenance.
Variants§
Resource(MemoryError)
The sort could not admit its own comparison dispatch or value movement.
Comparison(E)
The caller’s fallible comparison refused further processing.
Trait Implementations§
impl<E: Eq> Eq for SortError<E>
Source§impl From<SortError<MemoryError>> for MemoryError
impl From<SortError<MemoryError>> for MemoryError
Source§fn from(error: SortError<MemoryError>) -> Self
fn from(error: SortError<MemoryError>) -> Self
Converts to this type from the input type.
impl<E: PartialEq> StructuralPartialEq for SortError<E>
Auto Trait Implementations§
impl<E> Freeze for SortError<E>where
E: Freeze,
impl<E> RefUnwindSafe for SortError<E>where
E: RefUnwindSafe,
impl<E> Send for SortError<E>where
E: Send,
impl<E> Sync for SortError<E>where
E: Sync,
impl<E> Unpin for SortError<E>where
E: Unpin,
impl<E> UnsafeUnpin for SortError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for SortError<E>where
E: 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