pub enum Ty {
Var(TyVarId),
Prim(Prim),
Unit,
Never,
List(Box<Ty>),
Tuple(Vec<Ty>),
Record(IndexMap<String, Ty>),
Con(String, Vec<Ty>),
Function {
params: Vec<Ty>,
effects: EffectSet,
ret: Box<Ty>,
},
}Variants§
Var(TyVarId)
Prim(Prim)
Unit
Never
List(Box<Ty>)
Tuple(Vec<Ty>)
Record(IndexMap<String, Ty>)
Sorted alphabetically by field name.
Con(String, Vec<Ty>)
e.g. Result[Int, Str] or Option[T]. Resolved against the type env.
Function
Implementations§
Trait Implementations§
impl StructuralPartialEq for Ty
Auto Trait Implementations§
impl Freeze for Ty
impl RefUnwindSafe for Ty
impl Send for Ty
impl Sync for Ty
impl Unpin for Ty
impl UnsafeUnpin for Ty
impl UnwindSafe for Ty
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