pub enum TypeKind {
Prop,
Type0,
LargeType,
Universe,
Pi,
Lambda,
Application,
FreeVar,
Constant,
Literal,
Unknown,
}Expand description
Type-level kind classification of an expression.
Variants§
Prop
A proposition (Sort 0 / Prop).
Type0
A small type (Sort 1, i.e., Type 0).
LargeType
A large type (Sort n for n ≥ 2).
Universe
A universe Sort expression itself.
Pi
A function type (Pi).
Lambda
A lambda (not a type).
Application
An application (not directly a type).
FreeVar
A free variable.
Constant
A constant.
Literal
A literal value.
Unknown
Unknown or uncategorized.
Trait Implementations§
impl Copy for TypeKind
impl Eq for TypeKind
impl StructuralPartialEq for TypeKind
Auto Trait Implementations§
impl Freeze for TypeKind
impl RefUnwindSafe for TypeKind
impl Send for TypeKind
impl Sync for TypeKind
impl Unpin for TypeKind
impl UnsafeUnpin for TypeKind
impl UnwindSafe for TypeKind
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