bool-flags
bool-flags adds a simple struct type to condense multiple booleans into fewer bytes.
1 boolean tends to equal 1 byte, while 1 Flags8 equals 8 booleans in 1 byte.
There are five Flags types by default, Flags8, Flags16, Flags32, Flags64 & Flags128.
Check Cargo Features below for FlagsUSize.
Usage
Add this to your Cargo.toml:
[]
= "0.1.2"
Example
use Flags8;
Cargo Features
The bool-flags library defines two Cargo features:
inline: MakesFlagsstruct functions inline.usize: EnablesFlagsUSizetype.