#[non_exhaustive]pub enum ContextErrorKind {
UnknownId,
Arity,
RedirectCycle,
ForeignContext,
Structure,
}Expand description
Stable classifications for context admission failures.
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.
UnknownId
An arena ID does not exist in the supplied IR.
Arity
A definition, constant or operator argument has inconsistent arity.
RedirectCycle
An override chain contains a nontrivial cycle.
ForeignContext
A captured scope or deferred value belongs to another IR or name table.
Structure
The IR or its binding table has an inconsistent shape.
Trait Implementations§
Source§impl Clone for ContextErrorKind
impl Clone for ContextErrorKind
impl Copy for ContextErrorKind
Source§impl Debug for ContextErrorKind
impl Debug for ContextErrorKind
impl Eq for ContextErrorKind
Source§impl PartialEq for ContextErrorKind
impl PartialEq for ContextErrorKind
impl StructuralPartialEq for ContextErrorKind
Auto Trait Implementations§
impl Forget for ContextErrorKind
impl Freeze for ContextErrorKind
impl Move for ContextErrorKind
impl RefUnwindSafe for ContextErrorKind
impl Send for ContextErrorKind
impl Sync for ContextErrorKind
impl Unpin for ContextErrorKind
impl UnsafeUnpin for ContextErrorKind
impl UnwindSafe for ContextErrorKind
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