pub trait From<T>: Sized + Viewwhere
T: View,
Self::V: SpecFrom<<T as View>::V>,{
// Required method
fn ex_from(t: T) -> Self;
}
Expand description
Vest equivalent of std::convert::From
.
Required Methods§
Sourcefn ex_from(t: T) -> Self
fn ex_from(t: T) -> Self
Vest equivalent of std::convert::From::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.