pub trait From<T>{
// Required method
exec fn ex_from(t: T) -> res : Self;
}Expand description
Vest equivalent of std::convert::From.
Required Methods§
Sourceexec fn ex_from(t: T) -> res : Self
exec fn ex_from(t: T) -> res : Self
ensures
res@ == Self::V::spec_from(t@),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.