Enum cranelift_module::ModuleError [−][src]
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
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
impl Debug for ModuleError[src]
impl Debug for ModuleError[src]impl Display for ModuleError[src]
impl Display for ModuleError[src]impl Error for ModuleError[src]
impl Error for ModuleError[src]fn source(&self) -> Option<&(dyn Error + 'static)>[src]
fn source(&self) -> Option<&(dyn Error + 'static)>[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>[src]
fn backtrace(&self) -> Option<&Backtrace>[src]🔬 This is a nightly-only experimental API. (
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str1.0.0[src]
fn description(&self) -> &str1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl From<CodegenError> for ModuleError[src]
impl From<CodegenError> for ModuleError[src]fn from(source: CodegenError) -> Self[src]
fn from(source: CodegenError) -> Self[src]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
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more