pub enum ParseError {
Error(String),
}
Expand description
Enum used for propagating the parse error. At the moment it only contains one generic Error. Internally, this library just forwards the lalrpop error as a formatted string:
Err(error) => {
let error = format!("{:?}", error);
return Err(ParseError::Error(format!(
"Failed to parse, error: {}",
error
)));
}
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParseError
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
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