pub trait TryFrom<T> {
/// Performs the conversion. Returns None if the conversion can't be performed in a lossless manner.
fn try_from(b: T) -> Option<Self>;
}
Expand description
Used to attempt to do value-to-value conversions.
Returns None if the conversion can’t be performed in a lossless manner.
Required Methods
fn try_from(b: T) -> Option<Self>
fn try_from(b: T) -> Option<Self>
Performs the conversion. Returns None if the conversion can’t be performed in a lossless manner.