We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb68714 commit 6b2b882Copy full SHA for 6b2b882
src/lib.rs
@@ -15,6 +15,8 @@
15
16
pub 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.
20
pub trait TagName {
21
fn tag_name(&self) -> &'static str;
22
}
0 commit comments