tagname/
lib.rs

1#![deny(
2    warnings,
3    missing_debug_implementations,
4    rust_2018_idioms,
5    nonstandard_style,
6    future_incompatible,
7    clippy::all,
8    clippy::suspicious,
9    clippy::style,
10    clippy::complexity,
11    clippy::perf,
12    clippy::pedantic
13)]
14#![forbid(unsafe_code)]
15
16pub use tagname_derive::TagName;
17
18/// Exposes method `tag_name` to obtain a name (tag) of a currently hold
19/// variant inside an `enum` instance.
20pub trait TagName {
21    fn tag_name(&self) -> &'static str;
22}