pub enum ValidationError {
Show 61 variants
InvalidMagic,
InvalidVersion,
MalformedUtf8String(Utf8Error),
Eof,
InvalidSection(SectionTy, String),
InvalidSectionType(u8),
SectionOutOfOrder(SectionTy),
InvalidNumType,
InvalidVecType,
InvalidFuncType,
InvalidFuncTypeIdx,
InvalidRefType,
InvalidValType,
InvalidExportDesc(u8),
InvalidImportDesc(u8),
ExprMissingEnd,
InvalidInstr(u8),
InvalidMultiByteInstr(u8, u32),
EndInvalidValueStack,
InvalidLocalIdx,
InvalidValidationStackValType(Option<ValType>),
InvalidValidationStackType(ValidationStackEntry),
ExpectedAnOperand,
InvalidLimitsType(u8),
InvalidMutType(u8),
InvalidLimit,
MemSizeTooBig,
InvalidGlobalIdx(usize),
GlobalIsConst,
MemoryIsNotDefined(usize),
ErroneousAlignment(u32, u32),
NoDataSegments,
DataSegmentNotFound(usize),
InvalidLabelIdx(usize),
ValidationCtrlStackEmpty,
ElseWithoutMatchingIf,
IfWithoutMatchingElse,
UnknownTable,
TableIsNotDefined(usize),
ElementIsNotDefined(usize),
DifferentRefTypes(RefType, RefType),
ExpectedARefType(ValType),
WrongRefTypeForInteropValue(RefType, RefType),
FunctionIsNotDefined(usize),
ReferencingAnUnreferencedFunction(usize),
InvalidTypeIdx(usize),
OnlyFuncRefIsAllowed,
TypeUnificationMismatch,
InvalidSelectTypeVector,
TooManyLocals(usize),
Overflow,
UnknownFunction,
UnknownMemory,
UnknownGlobal,
DuplicateExportName,
UnsupportedMultipleMemoriesProposal,
ExprHasTrailingInstructions,
FunctionAndCodeSectionsHaveDifferentLengths,
DataCountAndDataSectionsLengthAreDifferent,
InvalidImportType,
InvalidLaneIndex,
}
Variants§
InvalidMagic
The magic number at the very start of the given WASM file is invalid.
InvalidVersion
MalformedUtf8String(Utf8Error)
Eof
InvalidSection(SectionTy, String)
InvalidSectionType(u8)
SectionOutOfOrder(SectionTy)
InvalidNumType
InvalidVecType
InvalidFuncType
InvalidFuncTypeIdx
InvalidRefType
InvalidValType
InvalidExportDesc(u8)
InvalidImportDesc(u8)
ExprMissingEnd
InvalidInstr(u8)
InvalidMultiByteInstr(u8, u32)
EndInvalidValueStack
InvalidLocalIdx
InvalidValidationStackValType(Option<ValType>)
InvalidValidationStackType(ValidationStackEntry)
ExpectedAnOperand
InvalidLimitsType(u8)
InvalidMutType(u8)
InvalidLimit
MemSizeTooBig
InvalidGlobalIdx(usize)
GlobalIsConst
MemoryIsNotDefined(usize)
ErroneousAlignment(u32, u32)
NoDataSegments
DataSegmentNotFound(usize)
InvalidLabelIdx(usize)
ValidationCtrlStackEmpty
ElseWithoutMatchingIf
IfWithoutMatchingElse
UnknownTable
TableIsNotDefined(usize)
ElementIsNotDefined(usize)
DifferentRefTypes(RefType, RefType)
ExpectedARefType(ValType)
WrongRefTypeForInteropValue(RefType, RefType)
FunctionIsNotDefined(usize)
ReferencingAnUnreferencedFunction(usize)
InvalidTypeIdx(usize)
OnlyFuncRefIsAllowed
TypeUnificationMismatch
InvalidSelectTypeVector
TooManyLocals(usize)
Overflow
UnknownFunction
UnknownMemory
UnknownGlobal
DuplicateExportName
UnsupportedMultipleMemoriesProposal
ExprHasTrailingInstructions
FunctionAndCodeSectionsHaveDifferentLengths
DataCountAndDataSectionsLengthAreDifferent
InvalidImportType
InvalidLaneIndex
Trait Implementations§
Source§impl Clone for ValidationError
impl Clone for ValidationError
Source§fn clone(&self) -> ValidationError
fn clone(&self) -> ValidationError
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 ValidationError
impl Debug for ValidationError
Source§impl Display for ValidationError
impl Display for ValidationError
Source§impl From<ValidationError> for Error
impl From<ValidationError> for Error
Source§fn from(value: ValidationError) -> Self
fn from(value: ValidationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ValidationError
impl PartialEq for ValidationError
impl Eq for ValidationError
impl StructuralPartialEq for ValidationError
Auto Trait Implementations§
impl Freeze for ValidationError
impl RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl UnwindSafe for ValidationError
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