Enum cranelift_module::ModuleError
source · [−]pub enum ModuleError {
Undeclared(String),
IncompatibleDeclaration(String),
IncompatibleSignature(String, Signature, Signature),
DuplicateDefinition(String),
InvalidImportDefinition(String),
Compilation(CodegenError),
Backend(Error),
}Expand description
Error messages for all Module methods
Variants
Undeclared(String)
Indicates an identifier was used before it was declared
IncompatibleDeclaration(String)
Indicates an identifier was used as data/function first, but then used as the other
IncompatibleSignature(String, Signature, Signature)
Indicates a function identifier was declared with a different signature than declared previously
DuplicateDefinition(String)
Indicates an identifier was defined more than once
InvalidImportDefinition(String)
Indicates an identifier was defined, but was declared as an import
Compilation(CodegenError)
Wraps a cranelift-codegen error
Backend(Error)
Wraps a generic error from a backend
Trait Implementations
sourceimpl Debug for ModuleError
impl Debug for ModuleError
sourceimpl Display for ModuleError
impl Display for ModuleError
sourceimpl Error for ModuleError
impl Error for ModuleError
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<CodegenError> for ModuleError
impl From<CodegenError> for ModuleError
sourcefn from(source: CodegenError) -> Self
fn from(source: CodegenError) -> Self
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for ModuleError
impl Send for ModuleError
impl Sync for ModuleError
impl Unpin for ModuleError
impl !UnwindSafe for ModuleError
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