rustc_type_ir

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>