pub trait Morph<T> {
// Required method
fn morph(from: T) -> Self;
}Expand description
Artificial trait implemented for a few types like AMQPValue or
ShortString to allow infallibly morphing (instantiating) them from
standard Rust types.
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.