pub trait InferInto<A, Marker>: Sized {
// Required method
fn into(self) -> A;
}
Expand description
Into
with relaxed orphan rule, you can define non-owned
conversion with a owned Marker
. Keep in mind this inference
will fail if multiple conversion paths are found.
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.