pub enum VerifyErrorKind {
Show 22 variants
EmptyModule,
VerifierWorkLimitExceeded {
work: u64,
limit: u64,
},
TooManyConstants {
count: usize,
},
TooManyFunctions {
count: usize,
},
EntryFunctionOutOfBounds {
entry: u32,
function_count: usize,
},
EmptyFunction,
TooManyInstructions {
count: usize,
},
TooManyHandlers {
count: usize,
},
RegisterCountOutOfBounds {
count: u32,
},
ParameterCountExceedsRegisters {
parameter_count: u32,
register_count: u32,
},
EntryRegistersExceedRegisterCount {
capture_count: u32,
parameter_count: u32,
register_count: u32,
},
FunctionNameOutOfBounds {
constant: u32,
},
FunctionNameNotString {
constant: ConstantId,
},
RegisterOutOfBounds {
register: Register,
register_count: u32,
},
ConstantOutOfBounds {
constant: ConstantId,
constant_count: usize,
},
StringConstantExpected {
constant: ConstantId,
},
FunctionReferenceOutOfBounds {
function: FunctionId,
function_count: usize,
},
JumpOutOfBounds {
target: u32,
instruction_count: usize,
},
InvalidHandlerBounds {
handler: usize,
start: u32,
end: u32,
target: u32,
},
HandlerCatchRegisterOutOfBounds {
handler: usize,
register: Register,
register_count: u32,
},
HandlersPartiallyOverlap {
left: usize,
right: usize,
},
ReadBeforeWrite {
register: Register,
},
}Variants§
EmptyModule
VerifierWorkLimitExceeded
TooManyConstants
TooManyFunctions
EntryFunctionOutOfBounds
EmptyFunction
TooManyInstructions
TooManyHandlers
RegisterCountOutOfBounds
ParameterCountExceedsRegisters
EntryRegistersExceedRegisterCount
FunctionNameOutOfBounds
FunctionNameNotString
Fields
§
constant: ConstantIdRegisterOutOfBounds
ConstantOutOfBounds
StringConstantExpected
Fields
§
constant: ConstantIdFunctionReferenceOutOfBounds
JumpOutOfBounds
InvalidHandlerBounds
HandlerCatchRegisterOutOfBounds
HandlersPartiallyOverlap
ReadBeforeWrite
Trait Implementations§
Source§impl Clone for VerifyErrorKind
impl Clone for VerifyErrorKind
Source§fn clone(&self) -> VerifyErrorKind
fn clone(&self) -> VerifyErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VerifyErrorKind
impl Debug for VerifyErrorKind
impl Eq for VerifyErrorKind
Source§impl PartialEq for VerifyErrorKind
impl PartialEq for VerifyErrorKind
impl StructuralPartialEq for VerifyErrorKind
Auto Trait Implementations§
impl Freeze for VerifyErrorKind
impl RefUnwindSafe for VerifyErrorKind
impl Send for VerifyErrorKind
impl Sync for VerifyErrorKind
impl Unpin for VerifyErrorKind
impl UnsafeUnpin for VerifyErrorKind
impl UnwindSafe for VerifyErrorKind
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