#named #derive #type #types

macro named_type_derive

Derive support for named_type

5 releases

0.1.4 Jul 10, 2018
0.1.3 Mar 15, 2017
0.1.2 Mar 15, 2017
0.1.1 Mar 14, 2017
0.1.0 Mar 10, 2017

#92 in Rust patterns

Download history 192/week @ 2018-05-27 240/week @ 2018-06-03 300/week @ 2018-06-10 211/week @ 2018-06-17 275/week @ 2018-06-24 355/week @ 2018-07-01 173/week @ 2018-07-08 222/week @ 2018-07-15 415/week @ 2018-07-22 426/week @ 2018-07-29 347/week @ 2018-08-05 441/week @ 2018-08-12 208/week @ 2018-08-19

910 downloads per month

MIT/Apache

7KB
78 lines

named_type

crates.io docs.rs CircleCI

This is a small Rust procedural macro that lets you get the name of a type, whether it is an enum or a struct. By simply deriving the trait on your type, you can automatically add a function to return the name of the type.


lib.rs:

This crate provides support for deriving the NamedType trait from the named_type crate. See that crate for further documentation.

Dependencies

~1MB
~22K SLoC