Enum cl_typeck::definition::TypeKind
source · pub enum TypeKind {
Alias(Option<DefID>),
Intrinsic(Intrinsic),
Adt(Adt),
Ref(u16, DefID),
Slice(DefID),
Array(DefID, usize),
Tuple(Vec<DefID>),
FnSig {
args: DefID,
rety: DefID,
},
Empty,
Never,
SelfTy,
Module,
}
Variants§
Alias(Option<DefID>)
An alias for an already-defined type
Intrinsic(Intrinsic)
A primitive type, built-in to the compiler
Adt(Adt)
A user-defined aromatic data type
Ref(u16, DefID)
A reference to an already-defined type: &T
Slice(DefID)
A contiguous view of dynamically sized memory
Array(DefID, usize)
A contiguous view of statically sized memory
Tuple(Vec<DefID>)
A tuple of existing types
FnSig
A function which accepts multiple inputs and produces an output
Empty
The unit type
Never
The never type
SelfTy
The Self type
Module
An untyped module
Trait Implementations§
source§impl PartialEq for TypeKind
impl PartialEq 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 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