Experimental autogenerated traits for operations between arbitrary structs (in the same crate).
MIT License
Published by Nukesor 10 months ago
This is the first MVP release of the inter-struct
library.
It's purpose is to implement traits between various structs.
StructMerge
trait which implements functions to merge a given struct into Self
.StructMergeInto
trait.StructMerge
which merges Self
into a target struct.StructMerge
is automatically implemented.StructMergeRef
trait which implements functions to merge a reference of given struct into Self
.Clone
.StructMergeIntoRef
trait.StructMergeRef
, which merges &Self
into a target struct.StructMergeRef
is automatically implemented.InterStruct
The main derive macro for this crate.merge
attribute for generating StructMergeInto
and the auto-implemented StructMerge
implementations.merge_ref
attribute for generating the StructMergeRefInto
and the auto-implemented StructMergeRef
implementations.into
attribute for generating std::convert::From
and the auto-implemented std::convert::Into
implementations.into_default
attribute for generating std::convert::From
and the auto-implemented std::convert::Into
implementations.Default::default
for the target struct.