#[non_exhaustive]pub enum OrderError<E> {
Term(NormalizeError),
NotScalar,
Source(SourceError),
Unsupported {
scheme: &'static str,
domain: &'static str,
},
Backend(E),
}Expand description
Why a space produced no term. Never includes plaintext.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Term(NormalizeError)
The scalar has no order term as the space’s target: no order for its kind, another kind than the target, outside the target, not valid for its logical type, or text with a code point unassigned in Unicode 16.
NotScalar
The value is a sequence, a map or a passthrough, which has no
single term. Walk it with order_terms.
Source(SourceError)
The value could not be read: its source failed before any term was made.
Unsupported
The scheme does not take terms of this target, chosen while the
program ran: a fixed-width scheme given text, or a width above its
limit. A target named when the program is compiled is checked
then, through Supports, and never reaches this.
Backend(E)
The scheme’s own failure.
Trait Implementations§
Source§impl<E: Debug> Debug for OrderError<E>
impl<E: Debug> Debug for OrderError<E>
Source§impl<E> Display for OrderError<E>where
E: Display,
impl<E> Display for OrderError<E>where
E: Display,
Source§impl<E> Error for OrderError<E>
impl<E> Error for OrderError<E>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl<E> From<NormalizeError> for OrderError<E>
impl<E> From<NormalizeError> for OrderError<E>
Source§fn from(source: NormalizeError) -> Self
fn from(source: NormalizeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> !RefUnwindSafe for OrderError<E>
impl<E> !UnwindSafe for OrderError<E>
impl<E> Freeze for OrderError<E>where
E: Freeze,
impl<E> Send for OrderError<E>where
E: Send,
impl<E> Sync for OrderError<E>where
E: Sync,
impl<E> Unpin for OrderError<E>where
E: Unpin,
impl<E> UnsafeUnpin for OrderError<E>where
E: UnsafeUnpin,
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