Crate extruct_macros

source ·

Attribute Macros§

  • An attribute macro implements the std::convert::From trait for an annotated non-generic named struct using a “superstruct” specified as the attribute parameter as a source type and the ExtructedFrom marker trait that indicates that struct fields populated during conversion from superstruct all have same names in both structs.

Derive Macros§

  • A derive macro implements the Fields trait for a struct.