Trait TryInto
core_extensions::try_from
pub trait TryInto<T>: Sized { type Error; pub fn try_into(self) -> Result<T, Self::Error>; }
Attempts to convert from Self to T,returning Err(Self::Error) on failure.
type Error
The error type returned when the conversion fails.
pub fn try_into(self) -> Result<T, Self::Error>
Performs the conversion
impl<T, U> TryInto<U> for T where U: TryFrom<T>,
type Error = U::Error
pub fn try_into(self) -> Result<U, U::Error>