tinymist_query::ty

Trait TyCtx

Source
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§

Source

fn local_bind_of(&self, _var: &Interned<TypeVar>) -> Option<Ty>

Get local binding of a variable.

Source

fn global_bounds( &self, _var: &Interned<TypeVar>, _pol: bool, ) -> Option<DynTypeBounds>

Get the type of a variable.

Implementations on Foreign Types§

Source§

impl TyCtx for ()

Implementors§

Source§

impl TyCtx for TypeInfo

Source§

impl<'a> TyCtx for IfaceCheckDriver<'a>

Source§

impl<'a> TyCtx for SigCheckDriver<'a>

Source§

impl<'a, T> TyCtx for ApplySigChecker<'a, T>
where T: ApplyChecker,

Source§

impl<'a, T> TyCtx for SelectKeyChecker<'a, T>
where T: TyCtx,

Source§

impl<'a, T, F> TyCtx for BoundPred<'a, T, F>
where T: TyCtx,