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)>
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()
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.
impl StructuralPartialEq for ExprError
Auto Trait Implementationsยง
impl Freeze for ExprError
impl RefUnwindSafe for ExprError
impl Send for ExprError
impl Sync for ExprError
impl Unpin for ExprError
impl UnwindSafe for ExprError
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