pub enum JitError {
Parse(String),
UnknownIdent(String),
UnknownFunction {
name: String,
arity: u8,
},
FunctionExists {
name: String,
arity: u8,
},
Invalidated,
Internal(String),
ValuesLen {
expected: usize,
got: usize,
},
}Expand description
The primary error type for the tabulon crate.
Variants§
Parse(String)
An error occurred while parsing the expression string.
UnknownIdent(String)
The expression contained an identifier (variable) that was not recognized by the resolver.
UnknownFunction
The expression tried to call a function that was not registered with the engine.
FunctionExists
An attempt was made to register a function with a name and arity that already exists.
Invalidated
An attempt was made to evaluate an expression after the underlying JIT memory was freed.
Call Tabula::free_memory invalidates all previously compiled expressions.
Internal(String)
An unexpected internal error occurred within the JIT compiler or engine.
These errors often indicate a bug in tabulon itself.
ValuesLen
The number of values provided for evaluation did not match the number of variables in the expression.
Trait Implementations§
Source§impl Error for JitError
impl Error for JitError
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()
Auto Trait Implementations§
impl Freeze for JitError
impl RefUnwindSafe for JitError
impl Send for JitError
impl Sync for JitError
impl Unpin for JitError
impl UnwindSafe for JitError
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