#[non_exhaustive]pub enum LabelCodeError {
System,
Code,
}Expand description
Why a label 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.
System
The system is no absolute URI, or it holds a |.
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§
Source§impl Clone for LabelCodeError
impl Clone for LabelCodeError
impl Copy for LabelCodeError
Source§impl Debug for LabelCodeError
impl Debug for LabelCodeError
Source§impl Display for LabelCodeError
impl Display for LabelCodeError
impl Eq for LabelCodeError
Source§impl Error for LabelCodeError
impl Error for LabelCodeError
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()
Source§impl PartialEq for LabelCodeError
impl PartialEq for LabelCodeError
impl StructuralPartialEq for LabelCodeError
Auto Trait Implementations§
impl Freeze for LabelCodeError
impl RefUnwindSafe for LabelCodeError
impl Send for LabelCodeError
impl Sync for LabelCodeError
impl Unpin for LabelCodeError
impl UnsafeUnpin for LabelCodeError
impl UnwindSafe for LabelCodeError
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