pub enum ErrorKind {
NoError,
UnexpectedToken,
OutOfRange {
have: usize,
want: usize,
},
Other {
reason: String,
},
Dynamic(Arc<dyn Error>),
}
Expand description
Actual kind of an error.
Variants§
NoError
A no error state that can be upgraded by later errors.
UnexpectedToken
Parser failed.
OutOfRange
RangedRepeats
with invalid bound.
Other
Something else failed which can be formatted as String
.
Dynamic(Arc<dyn Error>)
Any other error.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorKind
impl !RefUnwindSafe for ErrorKind
impl !Send for ErrorKind
impl !Sync for ErrorKind
impl Unpin for ErrorKind
impl !UnwindSafe for ErrorKind
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