Enum triton_vm::error::InstructionError
source · #[non_exhaustive]pub enum InstructionError {
Show 18 variants
InvalidOpcode(u32),
OutOfRangeOpcode(TryFromIntError),
IllegalArgument(Instruction, BFieldElement),
InstructionPointerOverflow,
OpStackTooShallow,
JumpStackIsEmpty,
AssertionFailed,
VectorAssertionFailed(usize),
SwapST0,
InverseOfZero,
DivisionByZero,
SpongeNotInitialized,
LogarithmOfZero,
FailedU32Conversion(BFieldElement),
EmptyPublicInput(usize),
EmptySecretInput(usize),
EmptySecretDigestInput,
MachineHalted,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidOpcode(u32)
OutOfRangeOpcode(TryFromIntError)
IllegalArgument(Instruction, BFieldElement)
InstructionPointerOverflow
OpStackTooShallow
JumpStackIsEmpty
AssertionFailed
VectorAssertionFailed(usize)
SwapST0
InverseOfZero
DivisionByZero
SpongeNotInitialized
LogarithmOfZero
FailedU32Conversion(BFieldElement)
EmptyPublicInput(usize)
EmptySecretInput(usize)
EmptySecretDigestInput
MachineHalted
Trait Implementations§
source§impl Clone for InstructionError
impl Clone for InstructionError
source§fn clone(&self) -> InstructionError
fn clone(&self) -> InstructionError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for InstructionError
impl Debug for InstructionError
source§impl Display for InstructionError
impl Display for InstructionError
source§impl Error for InstructionError
impl Error for InstructionError
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<TryFromIntError> for InstructionError
impl From<TryFromIntError> for InstructionError
source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
source§impl PartialEq for InstructionError
impl PartialEq for InstructionError
source§fn eq(&self, other: &InstructionError) -> bool
fn eq(&self, other: &InstructionError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for InstructionError
impl Eq for InstructionError
impl StructuralPartialEq for InstructionError
Auto Trait Implementations§
impl Freeze for InstructionError
impl RefUnwindSafe for InstructionError
impl Send for InstructionError
impl Sync for InstructionError
impl Unpin for InstructionError
impl UnwindSafe for InstructionError
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more