pub trait From<T> {
/// Converts to this type from the input type.
fn from(b: T) -> Self;
}
Expand description
Used to do value-to-value conversions.
Required Methods
fn from(b: T) -> Self
fn from(b: T) -> Self
Converts to this type from the input type.