#[non_exhaustive]pub enum ContextError {
Show 35 variants
AllocError {
error: Error,
},
InvalidConstValue {
item: ItemBuf,
error: Box<RuntimeError>,
},
InvalidAssociatedConstValue {
container: TypeInfo,
kind: Box<AssociatedKind>,
error: Box<RuntimeError>,
},
UnitAlreadyPresent,
InternalAlreadyPresent {
name: &'static str,
},
ConflictingFunction {
part: Box<str>,
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,
},
ConflictingReexport {
item: ItemBuf,
hash: Hash,
to: ItemBuf,
},
ConflictingTrait {
item: ItemBuf,
hash: Hash,
},
ConflictingTraitImpl {
trait_item: ItemBuf,
trait_hash: Hash,
item: ItemBuf,
hash: Hash,
},
MissingTraitFunction {
name: String,
item: ItemBuf,
hash: Hash,
trait_item: ItemBuf,
trait_hash: Hash,
},
MissingTrait {
item: ItemBuf,
hash: Hash,
impl_item: ItemBuf,
impl_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,
},
VariantConstructorConflict {
type_info: TypeInfo,
index: usize,
},
ConflictingConstConstruct {
type_info: TypeInfo,
hash: Hash,
},
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
InvalidConstValue
InvalidAssociatedConstValue
UnitAlreadyPresent
InternalAlreadyPresent
ConflictingFunction
ConflictingFunctionName
ConflictingMacroName
ConflictingConstantName
ConflictingInstanceFunction
ConflictingProtocolFunction
ConflictingFieldFunction
ConflictingIndexFunction
ConflictingModule
ConflictingType
ConflictingReexport
ConflictingTrait
ConflictingTraitImpl
MissingTraitFunction
MissingTrait
ConflictingTypeMeta
ConflictingVariantMeta
ConflictingMetaHash
ConflictingTypeHash
ConflictingVariant
ConstructorConflict
VariantConstructorConflict
ConflictingConstConstruct
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)>
Returns 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 Freeze for ContextError
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