logo
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”.

Required Methods

Performs the conversion.

Implementors