[][src]Enum stk::ContextError

pub enum ContextError {
    ConflictingFunction {
        signature: FnSignature,
        hash: Hash,
    },
    ConflictingFunctionName {
        name: Item,
    },
    ConflictingInstanceFunction {
        type_info: ValueTypeInfo,
        name: String,
    },
    ConflictingModule {
        name: Item,
        hash: Hash,
    },
    ConflictingType {
        name: Item,
        existing: ValueTypeInfo,
    },
    MissingInstance {
        instance_type: ValueTypeInfo,
    },
}

An error raised when building the context.

Variants

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

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.

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.

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>,