#[non_exhaustive]pub enum TypeClassError {
Empty,
InvalidChar {
char: char,
position: usize,
},
}Expand description
Errors for type-class parsing.
Produced by ExtensionClass::new and by TypeClass’s FromStr
implementation, which reaches an extension class for anything outside the
core set.
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.
Empty
The class name is empty.
InvalidChar
The name contains something other than a lowercase ASCII letter.
Trait Implementations§
Source§impl Clone for TypeClassError
impl Clone for TypeClassError
Source§impl Debug for TypeClassError
impl Debug for TypeClassError
Source§impl Display for TypeClassError
impl Display for TypeClassError
impl Eq for TypeClassError
Source§impl Error for TypeClassError
impl Error for TypeClassError
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 TypeClassError
impl PartialEq for TypeClassError
impl StructuralPartialEq for TypeClassError
Auto Trait Implementations§
impl Freeze for TypeClassError
impl RefUnwindSafe for TypeClassError
impl Send for TypeClassError
impl Sync for TypeClassError
impl Unpin for TypeClassError
impl UnsafeUnpin for TypeClassError
impl UnwindSafe for TypeClassError
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