enum_like

Crates.ioenum_like
lib.rsenum_like
version0.2.1
sourcesrc
created_at2018-07-11 16:36:57.753208
updated_at2018-11-19 21:23:30.61002
descriptionA trait to treat any type as an enum. If a type has a reasonably small number of variants, for example a `struct A(bool, bool)` which has 4 variants, this trait provides a 1-to-1 mapping from type value to a discriminant value. It also provides an iterator over all the possible values. This crate is mainly meant to be used along with [enum_like_derive](https://crates.io/crates/enum_like_derive) and [enum_vec](https://crates.io/crates/enum_vec) .
homepage
repositoryhttps://github.com/badel2/enum_vec
max_upload_size
id73786
size26,978
(Badel2)

documentation

https://docs.rs/enum_like

README

Commit count: 79

cargo fmt