10 releases
0.2.2 | Feb 5, 2020 |
---|---|
0.2.1 | Feb 12, 2019 |
0.2.0 | Jan 30, 2019 |
0.1.6 | Oct 17, 2018 |
0.1.3 | Mar 15, 2017 |
#51 in #deriving
5,729 downloads per month
Used in 2 crates
5KB
74 lines
named_type
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.
WARNING: This package is deprecated, because Rust now provides this by
default via std::any::typename
.
lib.rs
:
This crate provides support for deriving the NamedType
trait from the
named_type
crate. See that crate for further documentation.
Dependencies
~1.5MB
~34K SLoC