[][src]Enum runestick::ContextError

pub enum ContextError {
    UnitAlreadyPresent,
    InternalAlreadyPresent {
        name: &'static str,
    },
    ConflictingMeta {
        current: Box<CompileMeta>,
        existing: Box<CompileMeta>,
    },
    ConflictingFunction {
        signature: ContextSignature,
        hash: Hash,
    },
    ConflictingFunctionName {
        name: Item,
    },
    ConflictingInstanceFunction {
        type_info: TypeInfo,
        name: String,
    },
    ConflictingModule {
        item: Item,
        hash: Hash,
    },
    ConflictingType {
        item: Item,
        existing: TypeInfo,
    },
    ConflictingTypeHash {
        hash: Hash,
        existing: Hash,
        type_of: Type,
    },
    ConflictingVariant {
        item: Item,
    },
    MissingInstance {
        instance_type: TypeInfo,
    },
}

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.

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.

type_of: Type

The type we're trying to insert.

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.

Trait Implementations

impl Debug for ContextError[src]

impl Display for ContextError[src]

impl Error for ContextError[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.