Struct wasm_mutate::Error
source · pub struct Error { /* private fields */ }Expand description
An error encountered when choosing or applying a Wasm mutation.
Implementations§
source§impl Error
impl Error
sourcepub fn parse(err: BinaryReaderError) -> Self
pub fn parse(err: BinaryReaderError) -> Self
Construct a new parse error.
sourcepub fn no_mutations_applicable() -> Self
pub fn no_mutations_applicable() -> Self
Construct a “no mutations applicable” error.
sourcepub fn out_of_fuel() -> Self
pub fn out_of_fuel() -> Self
Construct an “out of fuel” error.
sourcepub fn unsupported(msg: impl Into<String>) -> Self
pub fn unsupported(msg: impl Into<String>) -> Self
Construct an unsupported error.
Trait Implementations§
source§impl Error for Error
impl Error for Error
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<BinaryReaderError> for Error
impl From<BinaryReaderError> for Error
source§fn from(e: BinaryReaderError) -> Self
fn from(e: BinaryReaderError) -> Self
Converts to this type from the input type.