Struct wasm_mutate::Error
source · [−]pub struct Error { /* private fields */ }Expand description
An error encountered when choosing or applying a Wasm mutation.
Implementations
sourceimpl 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
sourceimpl Error for Error
impl Error for Error
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<BinaryReaderError> for Error
impl From<BinaryReaderError> for Error
sourcefn from(e: BinaryReaderError) -> Self
fn from(e: BinaryReaderError) -> Self
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more