pub enum OpcodeResolutionError<F> {
OpcodeNotSolvable(OpcodeNotSolvable<F>),
UnsatisfiedConstrain {
opcode_location: ErrorLocation,
payload: Option<ResolvedAssertionPayload<F>>,
},
IndexOutOfBounds {
opcode_location: ErrorLocation,
index: F,
array_size: u32,
},
InvalidInputBitSize {
opcode_location: ErrorLocation,
invalid_input_bit_size: InvalidInputBitSize,
},
BlackBoxFunctionFailed(BlackBoxFunc, String),
BrilligFunctionFailed {
function_id: BrilligFunctionId,
call_stack: Vec<OpcodeLocation>,
payload: Option<ResolvedAssertionPayload<F>>,
},
AcirMainCallAttempted {
opcode_location: ErrorLocation,
},
AcirCallOutputsMismatch {
opcode_location: ErrorLocation,
results_size: u32,
outputs_size: u32,
},
PredicateLargerThanOne {
opcode_location: ErrorLocation,
pred_value: F,
},
MemoryOperationLargerThanOne {
opcode_location: ErrorLocation,
operation: F,
},
}Variants§
OpcodeNotSolvable(OpcodeNotSolvable<F>)
UnsatisfiedConstrain
IndexOutOfBounds
InvalidInputBitSize
BlackBoxFunctionFailed(BlackBoxFunc, String)
BrilligFunctionFailed
AcirMainCallAttempted
Fields
§
opcode_location: ErrorLocationAcirCallOutputsMismatch
PredicateLargerThanOne
MemoryOperationLargerThanOne
Trait Implementations§
Source§impl<F: Clone> Clone for OpcodeResolutionError<F>
impl<F: Clone> Clone for OpcodeResolutionError<F>
Source§fn clone(&self) -> OpcodeResolutionError<F>
fn clone(&self) -> OpcodeResolutionError<F>
Returns a duplicate 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<F: Debug> Debug for OpcodeResolutionError<F>
impl<F: Debug> Debug for OpcodeResolutionError<F>
Source§impl<F> Display for OpcodeResolutionError<F>
impl<F> Display for OpcodeResolutionError<F>
Source§impl<F> Error for OpcodeResolutionError<F>
impl<F> Error for OpcodeResolutionError<F>
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<F> From<BlackBoxResolutionError> for OpcodeResolutionError<F>
impl<F> From<BlackBoxResolutionError> for OpcodeResolutionError<F>
Source§fn from(value: BlackBoxResolutionError) -> Self
fn from(value: BlackBoxResolutionError) -> Self
Converts to this type from the input type.
Source§impl<F> From<InvalidInputBitSize> for OpcodeResolutionError<F>
impl<F> From<InvalidInputBitSize> for OpcodeResolutionError<F>
Source§impl<F> From<OpcodeNotSolvable<F>> for OpcodeResolutionError<F>
impl<F> From<OpcodeNotSolvable<F>> for OpcodeResolutionError<F>
Source§fn from(source: OpcodeNotSolvable<F>) -> Self
fn from(source: OpcodeNotSolvable<F>) -> Self
Converts to this type from the input type.
Source§impl<F: PartialEq> PartialEq for OpcodeResolutionError<F>
impl<F: PartialEq> PartialEq for OpcodeResolutionError<F>
impl<F: Eq> Eq for OpcodeResolutionError<F>
impl<F> StructuralPartialEq for OpcodeResolutionError<F>
Auto Trait Implementations§
impl<F> Freeze for OpcodeResolutionError<F>where
F: Freeze,
impl<F> RefUnwindSafe for OpcodeResolutionError<F>where
F: RefUnwindSafe,
impl<F> Send for OpcodeResolutionError<F>where
F: Send,
impl<F> Sync for OpcodeResolutionError<F>where
F: Sync,
impl<F> Unpin for OpcodeResolutionError<F>where
F: Unpin,
impl<F> UnwindSafe for OpcodeResolutionError<F>where
F: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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