trait_union_copy

Macro trait_union_copy 

Source
trait_union_copy!() { /* proc-macro */ }
Expand description

Macro that generates a trait-union type for Copy implementors

This macro is identical to trait_union except that

  • all implementors must be Copy
  • the generated type is not Drop
  • #[derive(Copy, Clone)] can be used as an attribute