pub enum ModuleInfoError {
WasmParserError(BinaryReaderError),
SectionAlreadyExists(u8),
SectionNotSupported(String),
TranslatorError(TranslatorError),
SectionRangeExceedsWasmLength {
range: Range<usize>,
wasm_len: usize,
},
TypeDoesNotExist(u32),
FunctionDoesNotExist(u32),
NoMemorySection,
ExportAlreadyExists(String),
CodeAndFuncSectionCntMismatch(u32, u32),
}Variants§
WasmParserError(BinaryReaderError)
SectionAlreadyExists(u8)
SectionNotSupported(String)
TranslatorError(TranslatorError)
SectionRangeExceedsWasmLength
TypeDoesNotExist(u32)
FunctionDoesNotExist(u32)
NoMemorySection
ExportAlreadyExists(String)
CodeAndFuncSectionCntMismatch(u32, u32)
Trait Implementations§
Source§impl Clone for ModuleInfoError
impl Clone for ModuleInfoError
Source§fn clone(&self) -> ModuleInfoError
fn clone(&self) -> ModuleInfoError
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 ModuleInfoError
impl Debug for ModuleInfoError
Source§impl Display for ModuleInfoError
impl Display for ModuleInfoError
Source§impl From<BinaryReaderError> for ModuleInfoError
impl From<BinaryReaderError> for ModuleInfoError
Source§fn from(err: BinaryReaderError) -> ModuleInfoError
fn from(err: BinaryReaderError) -> ModuleInfoError
Converts to this type from the input type.
Source§impl From<ModuleInfoError> for Error
impl From<ModuleInfoError> for Error
Source§fn from(err: ModuleInfoError) -> Error
fn from(err: ModuleInfoError) -> Error
Converts to this type from the input type.
Source§impl From<TranslatorError> for ModuleInfoError
impl From<TranslatorError> for ModuleInfoError
Source§fn from(err: TranslatorError) -> ModuleInfoError
fn from(err: TranslatorError) -> ModuleInfoError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ModuleInfoError
impl RefUnwindSafe for ModuleInfoError
impl Send for ModuleInfoError
impl Sync for ModuleInfoError
impl Unpin for ModuleInfoError
impl UnsafeUnpin for ModuleInfoError
impl UnwindSafe for ModuleInfoError
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