Enum ergotree_interpreter::eval::EvalError [−][src]
pub enum EvalError { InvalidResultType, UnexpectedExpr(String), CostError(CostError), TryExtractFrom(TryExtractFromError), NotFound(String), RegisterIdOutOfBounds(String), UnexpectedValue(String), ArithmeticException(String), ErgoBoxNotFound(IrErgoBoxArenaError), Misc(String), }
Interpreter errors
Variants
Only boolean or SigmaBoolean is a valid result expr type
UnexpectedExpr(String)
Unexpected Expr encountered during the evaluation
Error on cost calculation
TryExtractFrom(TryExtractFromError)
Unexpected value type
NotFound(String)
Not found (missing value, argument, etc.)
RegisterIdOutOfBounds(String)
Register id out of bounds
UnexpectedValue(String)
Unexpected value
ArithmeticException(String)
Arithmetic exception error
ErgoBoxNotFound(IrErgoBoxArenaError)
Cannot find ErgoBox in Context
Misc(String)
Misc error
Trait Implementations
impl Clone for EvalError
[src]
impl Debug for EvalError
[src]
impl Display for EvalError
[src]
impl Eq for EvalError
[src]
impl Error for EvalError
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<EvalError> for VerifierError
[src]
impl From<IrErgoBoxArenaError> for EvalError
[src]
fn from(source: IrErgoBoxArenaError) -> Self
[src]
impl From<TryExtractFromError> for EvalError
[src]
fn from(source: TryExtractFromError) -> Self
[src]
impl PartialEq<EvalError> for EvalError
[src]
impl StructuralEq for EvalError
[src]
impl StructuralPartialEq for EvalError
[src]
Auto Trait Implementations
impl RefUnwindSafe for EvalError
impl Send for EvalError
impl Sync for EvalError
impl Unpin for EvalError
impl UnwindSafe for EvalError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<F> TryExtractInto<F> for F
[src]
pub fn try_extract_into<T>(self) -> Result<T, TryExtractFromError> where
T: TryExtractFrom<F>,
[src]
T: TryExtractFrom<F>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,