Skip to content

cod10129/packed_booleans

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A crate for packing booleans

crates.io

The standard bool type is always a full byte. This becomes a problem when multiple booleans are in the same struct, as 2 bools are stored as 2 bytes, which is unnecessary and wastes space.

This crate exists to solve that problem. The PackedBools type contains 8 booleans at the cost of only a single byte of memory.

no_std

This crate is fully no_std compatible.

About

Rust packed_booleans crate.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages