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