pub enum ProgramVerifyErrorKind {
Show 36 variants
EmptyProgram,
TooManyModules {
count: usize,
},
EntryModuleOutOfBounds {
entry: u32,
module_count: usize,
},
Module(VerifyError),
ModuleNameOutOfBounds {
constant: ConstantId,
},
ModuleNameNotString {
constant: ConstantId,
},
InvalidModuleName,
MetadataStringIllFormed {
constant: ConstantId,
},
DuplicateModuleName {
first: ModuleId,
},
TooManyEdges {
count: usize,
},
TooManyBindings {
count: usize,
},
TooManyExports {
count: usize,
},
SpecifierOutOfBounds {
edge: EdgeId,
constant: ConstantId,
},
SpecifierNotString {
edge: EdgeId,
constant: ConstantId,
},
AbsoluteSpecifier {
edge: EdgeId,
},
DuplicateSpecifier {
first: EdgeId,
second: EdgeId,
},
LocalTargetOutOfBounds {
edge: EdgeId,
target: ModuleId,
},
BindingNameOutOfBounds {
binding: BindingId,
constant: ConstantId,
},
BindingNameNotString {
binding: BindingId,
constant: ConstantId,
},
BindingEdgeOutOfBounds {
binding: BindingId,
edge: EdgeId,
},
ImportedNameOutOfBounds {
binding: BindingId,
constant: ConstantId,
},
ImportedNameNotString {
binding: BindingId,
constant: ConstantId,
},
DuplicateBinding {
first: BindingId,
second: BindingId,
},
StaticBindingRequiresStaticEdge {
binding: BindingId,
edge: EdgeId,
},
MissingImportedExport {
binding: BindingId,
},
ExportNameOutOfBounds {
export: u32,
constant: ConstantId,
},
ExportNameNotString {
export: u32,
constant: ConstantId,
},
DuplicateExport {
first: u32,
second: u32,
},
ExportBindingOutOfBounds {
export: u32,
binding: BindingId,
},
ExportEdgeOutOfBounds {
export: u32,
edge: EdgeId,
},
IndirectNameOutOfBounds {
export: u32,
constant: ConstantId,
},
IndirectNameNotString {
export: u32,
constant: ConstantId,
},
DynamicImportMissingEdge {
specifier: ConstantId,
},
SnapshotExportInstruction {
function: u32,
pc: u32,
},
MissingIndirectExport {
export: u32,
},
IndirectExportCycle {
export: u32,
},
}Variants§
EmptyProgram
TooManyModules
EntryModuleOutOfBounds
Module(VerifyError)
ModuleNameOutOfBounds
Fields
§
constant: ConstantIdModuleNameNotString
Fields
§
constant: ConstantIdInvalidModuleName
MetadataStringIllFormed
Fields
§
constant: ConstantIdDuplicateModuleName
TooManyEdges
TooManyBindings
TooManyExports
SpecifierOutOfBounds
SpecifierNotString
AbsoluteSpecifier
DuplicateSpecifier
LocalTargetOutOfBounds
BindingNameOutOfBounds
BindingNameNotString
BindingEdgeOutOfBounds
ImportedNameOutOfBounds
ImportedNameNotString
DuplicateBinding
StaticBindingRequiresStaticEdge
MissingImportedExport
ExportNameOutOfBounds
ExportNameNotString
DuplicateExport
ExportBindingOutOfBounds
ExportEdgeOutOfBounds
IndirectNameOutOfBounds
IndirectNameNotString
DynamicImportMissingEdge
Fields
§
specifier: ConstantIdSnapshotExportInstruction
MissingIndirectExport
IndirectExportCycle
Trait Implementations§
Source§impl Clone for ProgramVerifyErrorKind
impl Clone for ProgramVerifyErrorKind
Source§fn clone(&self) -> ProgramVerifyErrorKind
fn clone(&self) -> ProgramVerifyErrorKind
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 ProgramVerifyErrorKind
impl Debug for ProgramVerifyErrorKind
impl Eq for ProgramVerifyErrorKind
Source§impl PartialEq for ProgramVerifyErrorKind
impl PartialEq for ProgramVerifyErrorKind
impl StructuralPartialEq for ProgramVerifyErrorKind
Auto Trait Implementations§
impl Freeze for ProgramVerifyErrorKind
impl RefUnwindSafe for ProgramVerifyErrorKind
impl Send for ProgramVerifyErrorKind
impl Sync for ProgramVerifyErrorKind
impl Unpin for ProgramVerifyErrorKind
impl UnsafeUnpin for ProgramVerifyErrorKind
impl UnwindSafe for ProgramVerifyErrorKind
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