pub enum ModuleError {
BinaryReader(BinaryReaderError),
Reencode(Error),
TryFromInt(TryFromIntError),
UnsupportedInstruction(String),
MultipleTables,
MultipleMemories,
NonZeroMemoryIdx(u32),
ElementTableIdx(u32),
PassiveDataKind,
ElementExpressions,
NonActiveElementKind,
TableInitExpr,
}
Variants§
BinaryReader(BinaryReaderError)
Reencode(Error)
TryFromInt(TryFromIntError)
UnsupportedInstruction(String)
MultipleTables
MultipleMemories
NonZeroMemoryIdx(u32)
ElementTableIdx(u32)
PassiveDataKind
ElementExpressions
NonActiveElementKind
TableInitExpr
Trait Implementations§
Source§impl Debug for ModuleError
impl Debug for ModuleError
Source§impl Display for ModuleError
impl Display for ModuleError
Source§impl Error for ModuleError
impl Error for ModuleError
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 From<BinaryReaderError> for ModuleError
impl From<BinaryReaderError> for ModuleError
Source§fn from(value: BinaryReaderError) -> Self
fn from(value: BinaryReaderError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ModuleError
impl From<Error> for ModuleError
Source§impl From<Infallible> for ModuleError
impl From<Infallible> for ModuleError
Source§fn from(value: Infallible) -> Self
fn from(value: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<String> for ModuleError
impl From<String> for ModuleError
Source§impl From<TryFromIntError> for ModuleError
impl From<TryFromIntError> for ModuleError
Source§fn from(value: TryFromIntError) -> Self
fn from(value: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ModuleError
impl RefUnwindSafe for ModuleError
impl Send for ModuleError
impl Sync for ModuleError
impl Unpin for ModuleError
impl UnwindSafe for ModuleError
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