rustc_middle::ty

Trait Upcast

pub trait Upcast<I, T> {
    // Required method
    fn upcast(self, interner: I) -> T;
}
Expand description

An Into-like trait that takes TyCtxt to perform interner-specific transformations.

Required Methods§

fn upcast(self, interner: I) -> T

Implementors§

§

impl<I, T, U> Upcast<I, U> for T
where U: UpcastFrom<I, T>,