pub trait Upcast<T>: Clone {
// Required method
fn upcast(self) -> T;
}Expand description
Our version of Into. This is the trait you use in where clauses,
but you typically implement UpcastFrom.
Required Methods§
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.