pub trait UpcastFrom<T: Clone> {
// Required method
fn upcast_from(term: T) -> Self;
}
Expand description
Our version of From
. One twist: it is implemented for &T for all T.
This is the trait you implement.
Required Methods§
fn upcast_from(term: T) -> 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.