Enum esr::error::ParseError
source · pub enum ParseError {
UnexpectedEndOfProgram,
UnexpectedToken {
source: String,
start: usize,
end: usize,
},
}
Expand description
Error type returned by parser::parse
. This error will include
owned String
of the source code where the error occurred, so
that a meaningful error can be printed out.
Variants
UnexpectedEndOfProgram
UnexpectedToken
Trait Implementations
sourceimpl Debug for ParseError
impl Debug for ParseError
Auto Trait Implementations
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
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