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