pub trait TryFrom<T>: Sized + Viewwhere
T: View,
Self::V: SpecTryFrom<<T as View>::V>,{
type Error;
// Required method
fn ex_try_from(t: T) -> Result<Self, Self::Error>;
}
Expand description
Vest equivalent of std::convert::TryFrom
.
Required Associated Types§
Required Methods§
Sourcefn ex_try_from(t: T) -> Result<Self, Self::Error>
fn ex_try_from(t: T) -> Result<Self, Self::Error>
Vest equivalent of std::convert::TryFrom::try_from
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.