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
Conflicting ()
types.
Conflicting internal type.
Fields of InternalAlreadyPresent
name: &'static str
The name of the internal type already present.
A conflicting name.
Fields of ConflictingMeta
current: Box<CompileMeta>
The current meta we tried to insert.
existing: Box<CompileMeta>
The existing meta item.
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.
Error raised when attempting to register a conflicting function.
Fields of ConflictingFunctionName
name: Item
The name of the conflicting function.
Error raised when attempting to register a conflicting constant.
Fields of ConflictingConstantName
name: Item
The name of the conflicting constant.
Error raised when attempting to register a conflicting instance function.
Fields of ConflictingInstanceFunction
Tried to insert a module that conflicted with an already existing one.
Fields of ConflictingModule
Raised when we try to register a conflicting type.
Fields of ConflictingType
Raised when we try to register a conflicting type hash.
Fields of ConflictingTypeHash
Error raised when attempting to register a conflicting function.
Fields of ConflictingVariant
item: Item
The name of the conflicting variant.
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.
Error raised when attempting to create a constant value.
Fields of ValueError
error: VmError
The inner error.