enum_array 0.1.0

A small crate adding a macro that creates a constant array containing all the items of the enum
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 0 items with examples
  • Size
  • Source code size: 2.16 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 994.95 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • danielrab

A small crate adding a macro that creates a constant array containing all the items of the enum. usage example:

enum_array!{
    #[derive(Debug, PartialEq, Eq)]
    pub enum Example {
        A,
        B,
    }
}
assert_eq!(Example::ENTRIES, [Example::A, Example::B])