Trait rustc_type_ir::upcast::UpcastFrom

source ·
pub trait UpcastFrom<I, T> {
    // Required method
    fn upcast_from(from: T, interner: I) -> Self;
}
Expand description

A From-like trait that takes TyCtxt to perform interner-specific transformations.

Required Methods§

source

fn upcast_from(from: T, interner: I) -> Self

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<I, T> UpcastFrom<I, T> for T

source§

impl<I: Interner> UpcastFrom<I, TraitRef<I>> for TraitPredicate<I>