pub enum ErrorKind<'a> {
ParseError(ParseError<usize, Token<'a>, &'a str>),
InvalidInputEncoding(Utf8Error),
}
Expand description
Primary error enum that is used on frontend functions to enable proper error parsing downstream.
- ErrorKind::ParseError: The result when the parser has trouble understanding the inputted string.
- ErrorKind::InvalidInputEncoding: When a given input is encoded poorly.
Make sure
input
in parse_str is UTF-8!
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ErrorKind<'a>
impl<'a> RefUnwindSafe for ErrorKind<'a>
impl<'a> Send for ErrorKind<'a>
impl<'a> Sync for ErrorKind<'a>
impl<'a> Unpin for ErrorKind<'a>
impl<'a> UnwindSafe for ErrorKind<'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