pub trait TryInto<Dst> {
type Err: Error;
// Required method
fn try_into(self) -> Result<Dst, Self::Err>;
}Expand description
This is the dual of TryFrom; see that trait for information.
Where possible, prefer using this trait over TryFrom for generic constraints, but prefer implementing TryFrom.