[][src]Enum runestick::ContextError

pub enum ContextError {
    UnitAlreadyPresent,
    InternalAlreadyPresent {
        name: &'static str,
    },
    ConflictingMeta {
        item: Item,
        current: Box<Meta>,
        existing: Box<Meta>,
    },
    ConflictingFunction {
        signature: FnSignature,
        hash: Hash,
    },
    ConflictingFunctionName {
        name: Item,
    },
    ConflictingInstanceFunction {
        value_type_info: ValueTypeInfo,
        name: String,
    },
    ConflictingModule {
        name: Item,
        hash: Hash,
    },
    ConflictingType {
        name: Item,
        existing: ValueTypeInfo,
    },
    ConflictingTypeHash {
        hash: Hash,
        existing: Hash,
        value_type: ValueType,
    },
    ConflictingVariant {
        name: Item,
    },
    MissingInstance {
        instance_type: ValueTypeInfo,
    },
    UnsupportedValueType {
        value_type: ValueType,
    },
}

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

item: Item

The item that conflicted

current: Box<Meta>

The current meta we tried to insert.

existing: Box<Meta>

The existing meta item.

ConflictingFunction

Error raised when attempting to register a conflicting function.

Fields of ConflictingFunction

signature: FnSignature

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

value_type_info: ValueTypeInfo

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

name: 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

name: Item

The name we tried to register.

existing: ValueTypeInfo

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.

value_type: ValueType

The type we're trying to insert.

ConflictingVariant

Error raised when attempting to register a conflicting function.

Fields of ConflictingVariant

name: 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: ValueTypeInfo

The instance type.

UnsupportedValueType

Error raised when attempting to register a type that doesn't have a type hash into a context.

Fields of UnsupportedValueType

value_type: ValueType

The type we tried to register.

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.

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