pub struct TypedTerm {
pub span: NodeSpan,
pub tpe: Type,
pub kind: TypedTermKind,
}Expand description
Like a Term but with an associated Type, and still with its position. Any term introducing a name will have a TypeBinder instead.
This is what typer::type_check hands back for
a declaration it typed, and the types on it are the solved ones: infer_annotated
applies unify’s final substitution to every node before returning. Between
annotate and that point they are inference variables and mean nothing on their own.
Fields§
§span: NodeSpan§tpe: Type§kind: TypedTermKindTrait Implementations§
Auto Trait Implementations§
impl Freeze for TypedTerm
impl RefUnwindSafe for TypedTerm
impl Send for TypedTerm
impl Sync for TypedTerm
impl Unpin for TypedTerm
impl UnsafeUnpin for TypedTerm
impl UnwindSafe for TypedTerm
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