pub enum ExprError {
Expr {
reason: &'static str,
expr: Expr,
},
Binary {
reason: &'static str,
op: BinaryOperator,
},
Unary {
reason: &'static str,
op: UnaryOperator,
},
Value(ValueError),
Identifier(IdentifierError),
}Expand description
Error in parsing an expression.
Variants§
Trait Implementations§
source§impl Error for ExprError
impl Error for ExprError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl From<ExprError> for CodegenError
impl From<ExprError> for CodegenError
source§impl From<IdentifierError> for ExprError
impl From<IdentifierError> for ExprError
source§fn from(i: IdentifierError) -> Self
fn from(i: IdentifierError) -> Self
Converts to this type from the input type.
source§impl From<ValueError> for ExprError
impl From<ValueError> for ExprError
source§fn from(v: ValueError) -> Self
fn from(v: ValueError) -> Self
Converts to this type from the input type.