pub enum NativeParseError {
Lex(LexError),
Unexpected {
found: String,
expected: &'static str,
span: Span,
},
MissingOperand {
operator: String,
span: Span,
},
NewlineInApplication {
span: Span,
},
InvalidAssignmentTarget {
span: Span,
},
InvalidLambdaParameters {
span: Span,
},
Unsupported {
syntax: String,
span: Span,
},
}Variants§
Lex(LexError)
Unexpected
MissingOperand
NewlineInApplication
InvalidAssignmentTarget
InvalidLambdaParameters
Unsupported
Trait Implementations§
Source§impl Debug for NativeParseError
impl Debug for NativeParseError
Source§impl Display for NativeParseError
impl Display for NativeParseError
Source§impl Error for NativeParseError
impl Error for NativeParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for NativeParseError
impl RefUnwindSafe for NativeParseError
impl Send for NativeParseError
impl Sync for NativeParseError
impl Unpin for NativeParseError
impl UnsafeUnpin for NativeParseError
impl UnwindSafe for NativeParseError
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