pub enum ErrorKind {
NotEnoughSegments,
UnknownCommand(String),
UnknownFlag(char),
RegexError(Error),
}
Expand description
An error that might happen during the parsing.
Variants
NotEnoughSegments
A given string has not enough segments.
UnknownCommand(String)
Unknown regex command has been detected.
UnknownFlag(char)
Unknown regex flags has been detected.
RegexError(Error)
Regex parsing/compiling error.
Trait Implementations
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more