enum-tags 0.1.0

A Derive-Macro library that generates a companion tag-enum for any enum so that variants can be referred to without specifying fields.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub use enum_tags_macros::*;
pub use enum_tags_traits::*;

mod fail_tests {
	//! # Struct Test
	//! ```compile_fail
	//! use enum_tags::Tag;
	//! #[derive(Tag)]
	//! struct Bad {}
	//! ```

	//! # Union Test
	//! ```compile_fail
	//! use enum_tags::Tag;
	//! #[derive(Tag)]
	//! union Bad {}
	//! ```
}