rustc_type_ir::upcast

Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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>