pub trait ExtructedFrom<T>: From<T> { }
Expand description
A marker trait indicating that a struct which implements it
has been annotated with [extruct_from(T)]
for the given type T.
It is an extension over the std::convert::From
trait and verifies that all names of the fields are preserved during
conversion.
This trait is not intended to be implemented manually. Its whole
purpose is to indicate the use of the extruct_from
macro on a
struct that implements it.
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.