pub trait From2<T> {
fn from2(T) -> Self;
}Expand description
Local implementation of trait From.
Separate implementation is required because of restriction : “only traits defined in the current crate can be implemented for a type parameter”.
pub trait From2<T> {
fn from2(T) -> Self;
}Local implementation of trait From.
Separate implementation is required because of restriction : “only traits defined in the current crate can be implemented for a type parameter”.