Enum rune::IrErrorKind[][src]

pub enum IrErrorKind {
    Custom {
        message: &'static str,
    },
    ScopeError {
        error: ScopeErrorKind,
    },
    AccessError {
        error: AccessError,
    },
    QueryError {
        error: Box<QueryErrorKind>,
    },
    ResolveError {
        error: ResolveErrorKind,
    },
    NotConst,
    ConstCycle,
    UnsupportedMeta {
        meta: CompileMeta,
    },
    Expected {
        expected: TypeInfo,
        actual: TypeInfo,
    },
    BudgetExceeded,
    IntegerUnderflow,
    MissingIndex {
        index: usize,
    },
    MissingField {
        field: Box<str>,
    },
    MissingLocal {
        name: Box<str>,
    },
    MissingConst {
        name: Box<str>,
    },
    BreakOutsideOfLoop,
    FnNotFound,
    ArgumentCountMismatch {
        actual: usize,
        expected: usize,
    },
    NotInteger {
        value: BigInt,
    },
}

Error when encoding AST.

Variants

Custom

Fields of Custom

message: &'static str
ScopeError

A scope error.

Fields of ScopeError

error: ScopeErrorKind

The kind of the scope error.

AccessError

An access error raised during compilation.

Fields of AccessError

error: AccessError

The source error.

QueryError

An access error raised during queries.

Fields of QueryError

error: Box<QueryErrorKind>

The source error.

ResolveError

Fields of ResolveError

error: ResolveErrorKind
NotConst

Encountered an expression that is not supported as a constant expression.

ConstCycle

Trying to process a cycle of constants.

UnsupportedMeta

Encountered a compile meta used in an inappropriate position.

Fields of UnsupportedMeta

meta: CompileMeta

Unsupported compile meta.

Expected

A constant evaluation errored.

Fields of Expected

expected: TypeInfo

The expected value.

actual: TypeInfo

The value we got instead.

BudgetExceeded

Exceeded evaluation budget.

IntegerUnderflow

Integer underflow.

MissingIndex

Missing a tuple index.

Fields of MissingIndex

index: usize

The index that was missing.

MissingField

Missing an object field.

Fields of MissingField

field: Box<str>

The field that was missing.

MissingLocal

Missing local with the given name.

Fields of MissingLocal

name: Box<str>

Name of the missing local.

MissingConst

Missing const or local with the given name.

Fields of MissingConst

name: Box<str>

Name of the missing thing.

BreakOutsideOfLoop

Error raised when trying to use a break outside of a loop.

FnNotFound
ArgumentCountMismatch

Fields of ArgumentCountMismatch

actual: usizeexpected: usize
NotInteger

Fields of NotInteger

value: BigInt

Trait Implementations

impl Debug for IrErrorKind[src]

impl Display for IrErrorKind[src]

impl Error for IrErrorKind[src]

impl From<AccessError> for IrErrorKind[src]

impl From<Box<QueryErrorKind, Global>> for IrErrorKind[src]

impl From<IrErrorKind> for CompileErrorKind[src]

impl From<IrErrorKind> for QueryErrorKind[src]

impl From<ResolveErrorKind> for IrErrorKind[src]

impl From<ScopeErrorKind> for IrErrorKind[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.