Enum it_lilo::traits::AllocatableError
source · [−]pub enum AllocatableError {
MemoryIsMissing {
memory_index: usize,
},
AllocateFuncIsMissing {
function_index: u32,
},
AllocateCallFailed,
AllocateFuncIncompatibleSignature,
AllocateFuncIncompatibleOutput,
UserDefinedError(String),
}Variants
MemoryIsMissing
Fields
memory_index: usizeThe memory index.
The memory doesn’t exist.
AllocateFuncIsMissing
Fields
function_index: u32The local or import function index.
The local or import function doesn’t exist.
AllocateCallFailed
Failed to call a allocate function.
AllocateFuncIncompatibleSignature
Allocate input types doesn’t match with needed.
AllocateFuncIncompatibleOutput
Allocate output types doesn’t match with needed.
UserDefinedError(String)
User defined error.
Trait Implementations
sourceimpl Debug for AllocatableError
impl Debug for AllocatableError
sourceimpl Display for AllocatableError
impl Display for AllocatableError
sourceimpl Error for AllocatableError
impl Error for AllocatableError
1.30.0 · 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<AllocatableError> for LoError
impl From<AllocatableError> for LoError
sourcefn from(source: AllocatableError) -> Self
fn from(source: AllocatableError) -> Self
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for AllocatableError
impl Send for AllocatableError
impl Sync for AllocatableError
impl Unpin for AllocatableError
impl UnwindSafe for AllocatableError
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