pub trait From2<T> {
// Required method
fn from2(other: T) -> Self;
}
Expand description
Wrapper trait that is implemented on Into
types.
This trait is purely needed for type parameter inferring purposes, where Into
can not be used,
but From
would make it not as versatile. This trait acts like From
, but is implemented when
only Into
is implemented.
Required Methods§
Object Safety§
This trait is not object safe.