Crate binf

Source
Expand description

§binf, Binary flags

This crate aims to make working with binary/bit flags easier. It also provides a macro to add similar functionality to zig’s packed structs with boolean fields.

Structs§

BitFlags
A wrapper around a type that implements BitFlag. In case you don’t want to import the trait and see the trait methods on each unsized integer.

Traits§

BitFlag
A trait for types that can be used as bit flags.

Attribute Macros§

bitflag
Attribute proc macro that turns a struct into a bitflag The underlying type of the bitflag is chosen based on the number of fields in the struct usage: