Trait TryInto
cubic_spline
pub trait TryInto<T>: Sized { type Error; pub fn try_into(self) -> Result<T, Self::Error>; }
The same as TryInto from std/core, except that it allows generic implementations. Details are in this issue
TryInto
std/core
Official documentation
type Error
The type returned in the event of a conversion error.
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>