Enum runestick::ContextError[][src]

pub enum ContextError {
Show 13 variants UnitAlreadyPresent, InternalAlreadyPresent { name: &'static str, }, ConflictingMeta { current: Box<CompileMeta>, existing: Box<CompileMeta>, }, ConflictingFunction { signature: ContextSignature, hash: Hash, }, ConflictingFunctionName { name: Item, }, ConflictingConstantName { name: Item, }, ConflictingInstanceFunction { type_info: TypeInfo, name: String, }, ConflictingModule { item: Item, hash: Hash, }, ConflictingType { item: Item, existing: TypeInfo, }, ConflictingTypeHash { hash: Hash, existing: Hash, }, ConflictingVariant { item: Item, }, MissingInstance { instance_type: TypeInfo, }, ValueError { error: VmError, },
}
Expand description

An error raised when building the context.

Variants

UnitAlreadyPresent

Conflicting () types.

InternalAlreadyPresent

Conflicting internal type.

Fields of InternalAlreadyPresent

name: &'static str

The name of the internal type already present.

ConflictingMeta

A conflicting name.

Fields of ConflictingMeta

current: Box<CompileMeta>

The current meta we tried to insert.

existing: Box<CompileMeta>

The existing meta item.

ConflictingFunction

Error raised when attempting to register a conflicting function.

Fields of ConflictingFunction

signature: ContextSignature

The signature of the conflicting function.

hash: Hash

The hash of the conflicting function.

ConflictingFunctionName

Error raised when attempting to register a conflicting function.

Fields of ConflictingFunctionName

name: Item

The name of the conflicting function.

ConflictingConstantName

Error raised when attempting to register a conflicting constant.

Fields of ConflictingConstantName

name: Item

The name of the conflicting constant.

ConflictingInstanceFunction

Error raised when attempting to register a conflicting instance function.

Fields of ConflictingInstanceFunction

type_info: TypeInfo

Type that we register the instance function for.

name: String

The name of the conflicting function.

ConflictingModule

Tried to insert a module that conflicted with an already existing one.

Fields of ConflictingModule

item: Item

The name of the module that conflicted.

hash: Hash

The hash of the module that conflicted.

ConflictingType

Raised when we try to register a conflicting type.

Fields of ConflictingType

item: Item

The name we tried to register.

existing: TypeInfo

The type information for the type that already existed.

ConflictingTypeHash

Raised when we try to register a conflicting type hash.

Fields of ConflictingTypeHash

hash: Hash

The hash we are trying to insert.

existing: Hash

The hash that already existed.

ConflictingVariant

Error raised when attempting to register a conflicting function.

Fields of ConflictingVariant

item: Item

The name of the conflicting variant.

MissingInstance

Error raised when attempting to register an instance function on an instance which does not exist.

Fields of MissingInstance

instance_type: TypeInfo

The instance type.

ValueError

Error raised when attempting to create a constant value.

Fields of ValueError

error: VmError

The inner error.

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

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.