rustc_type_ir::upcast

Trait Upcast

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

Source

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

Implementors§

Source§

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