pub enum ErrorCode {
E001,
E002,
E003,
E004,
E005,
E006,
E007,
E008,
E009,
E010,
}Expand description
Stable, machine-readable error codes.
Quick reference:
- E001: ParseError
- E002: TypeError
- E003: ArityError
- E004: SymbolNotFound
- E005: AmbiguousSymbol
- E006: DivisionByZero
- E007: RecursionError
- E008: IndexError
- E009: IntegerOverflow
- E010: ScopeError
Variants§
E001
Parse error: expression does not conform to the grammar.
E002
Type error:operator applied to incompatible types.
E003
Argument error: wrong operand count for an operator.
E004
Symbol not found: symbol path is not present in the payload.
E005
Ambiguous symbol: reserved for a future shorthand-lookup mode.
E006
Division by zero in Div or Mod.
E007
Recursion error: AST nesting exceeded max_depth.
E008
Index error: Get/Head/Tail ran off the end of a list.
E009
Integer overflow during checked arithmetic.
E010
Scope error: @ symbol used outside any quantifier predicate.
Trait Implementations§
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
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