Enum rune::compile::ContextError
source · #[non_exhaustive]pub enum ContextError {
Show 28 variants
AllocError {
error: Error,
},
UnitAlreadyPresent,
InternalAlreadyPresent {
name: &'static str,
},
ConflictingFunction {
hash: Hash,
},
ConflictingFunctionName {
item: ItemBuf,
hash: Hash,
},
ConflictingMacroName {
item: ItemBuf,
hash: Hash,
},
ConflictingConstantName {
item: ItemBuf,
hash: Hash,
},
ConflictingInstanceFunction {
type_info: TypeInfo,
name: Box<str>,
},
ConflictingProtocolFunction {
type_info: TypeInfo,
name: Box<str>,
},
ConflictingFieldFunction {
type_info: TypeInfo,
name: Box<str>,
field: Box<str>,
},
ConflictingIndexFunction {
type_info: TypeInfo,
name: Box<str>,
index: usize,
},
ConflictingModule {
item: ItemBuf,
hash: Hash,
},
ConflictingType {
item: ItemBuf,
type_info: TypeInfo,
hash: Hash,
},
ConflictingTypeMeta {
item: ItemBuf,
type_info: TypeInfo,
},
ConflictingVariantMeta {
index: usize,
type_info: TypeInfo,
},
ConflictingMetaHash {
item: ItemBuf,
hash: Hash,
existing: Hash,
},
ConflictingTypeHash {
hash: Hash,
existing: Hash,
},
ConflictingVariant {
item: ItemBuf,
},
ConstructorConflict {
type_info: TypeInfo,
},
ValueError {
error: VmError,
},
VariantConstructorConflict {
type_info: TypeInfo,
index: usize,
},
MissingType {
item: ItemBuf,
type_info: TypeInfo,
},
MissingEnum {
item: ItemBuf,
type_info: TypeInfo,
},
MissingContainer {
container: TypeInfo,
},
MissingVariant {
index: usize,
type_info: TypeInfo,
},
ExpectedAssociated,
TypeHashMismatch {
type_info: TypeInfo,
item: ItemBuf,
hash: Hash,
item_hash: Hash,
},
StaticTypeHashMismatch {
type_info: TypeInfo,
item: ItemBuf,
hash: Hash,
item_hash: Hash,
},
}
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.
AllocError
UnitAlreadyPresent
InternalAlreadyPresent
ConflictingFunction
ConflictingFunctionName
ConflictingMacroName
ConflictingConstantName
ConflictingInstanceFunction
ConflictingProtocolFunction
ConflictingFieldFunction
ConflictingIndexFunction
ConflictingModule
ConflictingType
ConflictingTypeMeta
ConflictingVariantMeta
ConflictingMetaHash
ConflictingTypeHash
ConflictingVariant
ConstructorConflict
ValueError
VariantConstructorConflict
MissingType
MissingEnum
MissingContainer
MissingVariant
ExpectedAssociated
TypeHashMismatch
StaticTypeHashMismatch
Trait Implementations§
source§impl Debug for ContextError
impl Debug for ContextError
source§impl Display for ContextError
impl Display for ContextError
source§impl Error for ContextError
impl Error for ContextError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<AllocError> for ContextError
impl From<AllocError> for ContextError
source§fn from(error: AllocError) -> Self
fn from(error: AllocError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ContextError
impl Send for ContextError
impl Sync for ContextError
impl Unpin for ContextError
impl !UnwindSafe for ContextError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more