#bit-flags #flags #enums

eset

A simple library for flags like enums

1 unstable release

0.1.0 Sep 17, 2023

#39 in #bit-flags

MIT/Apache

20KB
375 lines

eset-rs

A simple library for flags like enums.

Unlike crates like enumset or bitflags, this crate relies entirely on rust's type system to function, with no derive macros required.

This crate does not provide derive functionalities but instead rely on the user to implement the ReprEnum trait. The user can choose to use crates like num_enum and strum to provide additional functionalities.


lib.rs:

A simple library for flags like enums.

Unlike crates like enumset or bitflags, this crate relies entirely on rust's type system to function, with no derive macros required.

This crate does not provide derive functionalities but instead rely on the user to implement the ReprEnum trait. The user can choose to use crates like num_enum and strum to provide additional functionalities.

Dependencies

~0–490KB
~12K SLoC