Enum cranelift_module::ModuleError
source · pub enum ModuleError {
Undeclared(String),
IncompatibleDeclaration(String),
IncompatibleSignature(String, Signature, Signature),
DuplicateDefinition(String),
InvalidImportDefinition(String),
Compilation(CodegenError),
Backend(String),
}Expand description
Error messages for all Module and Backend 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(String)
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 Fail for ModuleError
impl Fail for ModuleError
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace carried by this failure, if it
carries one. Read moreAuto 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more