pub trait TryFrom<T>: Sized + Sealed {
type Error;
fn try_from(value: T) -> Result<Self, Self::Error>;
}
Expand description
Attempt to construct Self
via a conversion.
This trait will be deprecated in favor of std::convert::TryFrom once it reaches stable Rust.