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

#59 in #deriving

Download history 628/week @ 2024-11-17 518/week @ 2024-11-24 485/week @ 2024-12-01 556/week @ 2024-12-08 492/week @ 2024-12-15 74/week @ 2024-12-22 89/week @ 2024-12-29 694/week @ 2025-01-05 309/week @ 2025-01-12 544/week @ 2025-01-19 269/week @ 2025-01-26 432/week @ 2025-02-02 442/week @ 2025-02-09 475/week @ 2025-02-16 178/week @ 2025-02-23 223/week @ 2025-03-02

1,337 downloads per month
Used in 2 crates

MIT/Apache

5KB
74 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.

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
~37K SLoC