enum_helpers

A simple rust library that adds functions such as is_, as_ and as_mut_ to enums.

Example

```rust use enum_helpers::EnumIs;

[derive(EnumIs)]

pub enum Test { Example(u32), }

pub fn main() { let test = Test::Example(123); assert!(test.is_example()); // true } ```

More examples here.

Changelog here.