[][src]Enum ketos::compile::CompileError

pub enum CompileError {
    ArityError {
        name: Name,
        expected: Arity,
        found: u32,
    },
    CannotDefine(Name),
    ConstantExists(Name),
    DuplicateExports,
    DuplicateModuleDoc,
    DuplicateParameter(Name),
    ExportError {
        module: Name,
        name: Name,
    },
    ImportCycle(Name),
    ImportError {
        module: Name,
        name: Name,
    },
    ImportShadow(Name),
    InvalidCallExpression(&'static str),
    InvalidCommaAt,
    InvalidModuleName(Name),
    MacroRecursionExceeded,
    MissingExport,
    ModuleError(Name),
    NotConstant(Name),
    OperandOverflow(u32),
    PrivacyError {
        module: Name,
        name: Name,
    },
    SyntaxError(&'static str),
    UnbalancedComma,
}

Represents an error generated while compiling to bytecode.

Variants

ArityError

Error in arity for call to system function

Fields of ArityError

name: Name

Name of function

expected: Arity

Expected count or range of arguments

found: u32

Number of arguments present

CannotDefine(Name)

Attempt to define name of standard value or operator

ConstantExists(Name)

Attempt to define name held by const value

DuplicateExports

Duplicate exports declaration

DuplicateModuleDoc

Duplicate module-doc declaration

DuplicateParameter(Name)

Duplicate name in parameter list

ExportError

Attempt to export nonexistent name from module

Fields of ExportError

module: Name

Module name

name: Name

Imported name

ImportCycle(Name)

Recursion in module imports

ImportError

Attempt to import nonexistent name from module

Fields of ImportError

module: Name

Module name

name: Name

Imported name

ImportShadow(Name)

Attempt to import or define name which already exists

InvalidCallExpression(&'static str)

Invalid expression to function call

InvalidCommaAt

,@expr form outside of a list

InvalidModuleName(Name)

Module name contains invalid characters

MacroRecursionExceeded

Recursion limit exceeded while expanding macros

MissingExport

Missing export declaration in loaded module

ModuleError(Name)

Failed to load a module

NotConstant(Name)

const operator value is not constant

OperandOverflow(u32)

Operand value overflow

PrivacyError

Attempt to import value that is not exported

Fields of PrivacyError

module: Name

Module name

name: Name

Imported name

SyntaxError(&'static str)

Error in parsing operator syntax

UnbalancedComma

More commas than backquotes

Trait Implementations

impl Debug for CompileError[src]

impl Display for CompileError[src]

impl From<CompileError> for Error[src]

impl NameDisplay for CompileError[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,