Enum rune::ContextError [−][src]
#[non_exhaustive]
pub enum ContextError {
Show 13 variants
UnitAlreadyPresent,
InternalAlreadyPresent {
name: &'static str,
},
ConflictingMeta {
current: Box<Meta>,
existing: Box<Meta>,
},
ConflictingFunction {
signature: ContextSignature,
hash: Hash,
},
ConflictingFunctionName {
name: Item,
},
ConflictingConstantName {
name: Item,
},
ConflictingInstanceFunction {
type_info: TypeInfo,
name: Box<str>,
},
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 (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnitAlreadyPresent
InternalAlreadyPresent
Fields
name: &'static str
ConflictingMeta
ConflictingFunction
ConflictingFunctionName
Fields
name: Item
ConflictingConstantName
Fields
name: Item
ConflictingInstanceFunction
ConflictingModule
ConflictingType
ConflictingTypeHash
ConflictingVariant
Fields
item: Item
MissingInstance
Fields
instance_type: TypeInfo
ValueError
Fields
error: VmError