Trait extruct_core::ExtructedFrom

source ·
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.

Object Safety§

This trait is not object safe.

Implementors§