pub trait TyCtx {
// Required methods
fn local_bind_of(&self, _var: &Interned<TypeVar>) -> Option<Ty>;
fn global_bounds(
&self,
_var: &Interned<TypeVar>,
_pol: bool,
) -> Option<DynTypeBounds>;
}
Expand description
A type context.
Required Methods§
Sourcefn local_bind_of(&self, _var: &Interned<TypeVar>) -> Option<Ty>
fn local_bind_of(&self, _var: &Interned<TypeVar>) -> Option<Ty>
Get local binding of a variable.
Sourcefn global_bounds(
&self,
_var: &Interned<TypeVar>,
_pol: bool,
) -> Option<DynTypeBounds>
fn global_bounds( &self, _var: &Interned<TypeVar>, _pol: bool, ) -> Option<DynTypeBounds>
Get the type of a variable.