Enum rune::IrErrorKind[][src]

pub enum IrErrorKind {
Show 19 variants 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, },
}
Expand description

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

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.