pub enum ParseErrorKind<'a> {
TooShort(&'a str),
VariantsWithoutModifier(&'a str),
UnknownPlugin(&'a str),
UnknownVariant(&'a str, &'a str),
}Expand description
The kind of parsing error
Variants§
TooShort(&'a str)
Indicate that the selector is too short to be an existing selector (the shortest selector has 2 characters).
VariantsWithoutModifier(&'a str)
Indicate that the selector has some variants but no modifier
UnknownPlugin(&'a str)
Indicate that no plugins were found to handle the selector
UnknownVariant(&'a str, &'a str)
Indicate that a variant of the selector does not exist
Trait Implementations§
Source§impl<'a> Debug for ParseErrorKind<'a>
impl<'a> Debug for ParseErrorKind<'a>
Source§impl<'a> Display for ParseErrorKind<'a>
impl<'a> Display for ParseErrorKind<'a>
Source§impl<'a> Error for ParseErrorKind<'a>
impl<'a> Error for ParseErrorKind<'a>
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<'a> PartialEq for ParseErrorKind<'a>
impl<'a> PartialEq for ParseErrorKind<'a>
impl<'a> Eq for ParseErrorKind<'a>
impl<'a> StructuralPartialEq for ParseErrorKind<'a>
Auto Trait Implementations§
impl<'a> Freeze for ParseErrorKind<'a>
impl<'a> RefUnwindSafe for ParseErrorKind<'a>
impl<'a> Send for ParseErrorKind<'a>
impl<'a> Sync for ParseErrorKind<'a>
impl<'a> Unpin for ParseErrorKind<'a>
impl<'a> UnwindSafe for ParseErrorKind<'a>
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