pub enum ParserError {
UnexpectedToken {
expected: String,
found: String,
location: SourceLocation,
},
UnexpectedEOF {
expected: String,
location: SourceLocation,
},
InvalidSyntax {
message: String,
location: SourceLocation,
},
IndentationError {
message: String,
location: SourceLocation,
},
DuplicateDefinition {
name: String,
location: SourceLocation,
},
}Expand description
Parser errors
Variants§
Trait Implementations§
Source§impl Clone for ParserError
impl Clone for ParserError
Source§fn clone(&self) -> ParserError
fn clone(&self) -> ParserError
Returns a duplicate 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 Debug for ParserError
impl Debug for ParserError
Source§impl Display for ParserError
impl Display for ParserError
Source§impl From<ParserError> for TcssError
impl From<ParserError> for TcssError
Source§fn from(error: ParserError) -> Self
fn from(error: ParserError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ParserError
impl PartialEq for ParserError
impl StructuralPartialEq for ParserError
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