Enum marine_it_parser::ITParserError
source · pub enum ITParserError {
NoITSection,
MultipleITSections,
ITRemainderNotEmpty,
CorruptedITSection(Err<(Vec<u8>, ErrorKind)>),
IncorrectITFormat(String),
ModuleInterfaceError(InterfaceError),
ModuleITInterfaceError(ITInterfaceError),
CorruptedITFile(Error),
CorruptedWasmFile(Error),
AstToBytesError(Error),
WasmEmitError(Error),
}
Variants§
NoITSection
IT section is absent.
MultipleITSections
Multiple IT sections.
ITRemainderNotEmpty
IT section remainder isn’t empty.
CorruptedITSection(Err<(Vec<u8>, ErrorKind)>)
An error occurred while parsing IT section.
IncorrectITFormat(String)
An error related to incorrect data in IT section.
ModuleInterfaceError(InterfaceError)
An error occurred while processing module interface.
ModuleITInterfaceError(ITInterfaceError)
An error occurred while processing module IT interface.
CorruptedITFile(Error)
An error occurred while parsing file in Wat format.
CorruptedWasmFile(Error)
An error occurred while parsing Wasm file.
AstToBytesError(Error)
An error occurred while manipulating with converting ast to bytes.
WasmEmitError(Error)
Wasm emitting file error.
Trait Implementations§
source§impl Debug for ITParserError
impl Debug for ITParserError
source§impl Display for ITParserError
impl Display for ITParserError
source§impl Error for ITParserError
impl Error for ITParserError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Error> for ITParserError
impl From<Error> for ITParserError
source§impl From<Error> for ITParserError
impl From<Error> for ITParserError
source§impl From<ITInterfaceError> for ITParserError
impl From<ITInterfaceError> for ITParserError
source§fn from(source: ITInterfaceError) -> Self
fn from(source: ITInterfaceError) -> Self
Converts to this type from the input type.
source§impl From<InterfaceError> for ITParserError
impl From<InterfaceError> for ITParserError
source§fn from(source: InterfaceError) -> Self
fn from(source: InterfaceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ITParserError
impl !RefUnwindSafe for ITParserError
impl Send for ITParserError
impl Sync for ITParserError
impl Unpin for ITParserError
impl !UnwindSafe for ITParserError
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more