[][src]Enum cranelift_module::ModuleError

pub enum ModuleError {
    Undeclared(String),
    IncompatibleDeclaration(String),
    IncompatibleSignature(String, Signature, Signature),
    DuplicateDefinition(String),
    InvalidImportDefinition(String),
    Compilation(CodegenError),
    Backend(String),
}

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

impl Debug for ModuleError[src]

impl Display for ModuleError[src]

impl Error for ModuleError[src]

impl From<CodegenError> for ModuleError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.