pub struct ParserError {
pub span: Range<usize>,
pub msg: String,
pub cause: Option<Box<ParserError>>,
}Fields§
§span: Range<usize>§msg: String§cause: Option<Box<ParserError>>Trait Implementations§
Source§impl Clone for ParserError
impl Clone for ParserError
Source§fn clone(&self) -> ParserError
fn clone(&self) -> ParserError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl RowanNomError<LustreLang> for ParserError
impl RowanNomError<LustreLang> for ParserError
Source§fn from_message(message: &str) -> Self
fn from_message(message: &str) -> Self
Generic error, should probably be ultimately removed
fn from_expected(position: usize, message: &str) -> Self
fn from_expected_eof(range: Range<usize>) -> Self
Source§fn from_unexpected_eof(position: usize) -> Self
fn from_unexpected_eof(position: usize) -> Self
Creates error: Attempted to read a token when there are none remaining
fn from_unexpected_token( span: Range<usize>, expected: Token, found: Token, ) -> Self
fn with_context(self, ctx: &'static str) -> Self
Auto Trait Implementations§
impl Freeze for ParserError
impl RefUnwindSafe for ParserError
impl Send for ParserError
impl Sync for ParserError
impl Unpin for ParserError
impl UnwindSafe for ParserError
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