#[non_exhaustive]pub enum CodeError {
NoSystem,
System,
Priority,
Code,
}Expand description
Why a national category is refused.
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.
NoSystem
The category names no system: it is not written <system>|<code>.
System
The system is no absolute URI, or it holds a |.
Priority
The system is the code system of the priority categories.
Code
The code is empty, has leading or trailing whitespace, holds whitespace other than single spaces, or holds a character below U+0020.
Trait Implementations§
impl Eq for CodeError
Source§impl Error for CodeError
impl Error for CodeError
1.30.0 · 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()
impl StructuralPartialEq for CodeError
Auto Trait Implementations§
impl Freeze for CodeError
impl RefUnwindSafe for CodeError
impl Send for CodeError
impl Sync for CodeError
impl Unpin for CodeError
impl UnsafeUnpin for CodeError
impl UnwindSafe for CodeError
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