diff options
author | JSDurand <mmemmew@gmail.com> | 2023-05-04 13:02:39 +0800 |
---|---|---|
committer | JSDurand <mmemmew@gmail.com> | 2023-05-04 13:02:39 +0800 |
commit | 662817e6367a865a2d86a99581172cc45f585807 (patch) | |
tree | e5c7d1a0a52ce9d057d9c27ac4c7549b77198efb /tokens/src/lib.rs | |
parent | 57d600f261cca5d9076239e548c6e00646f774b6 (diff) |
Completed the procedural macro for deriving Graphs.
The macro `graph_derive` can automatically write the boiler-plate
codes for wrapper types one of whose sub-fields implements the `Graph`
trait. The generated implementation will delegate the `Graph`
operations to the sub-field which implements the `Graph` trait.
I plan to add more macros, corresponding to various other
graph-related traits, so that no such boiler-plate codes are needed,
at least for my use-cases.
Diffstat (limited to 'tokens/src/lib.rs')
0 files changed, 0 insertions, 0 deletions