You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2e1be0d
Browse filesBrowse the repository at this point in the historyBrowse files
A Rust macro to generate structures which behave like a set of bitflags
9
+
`bitflags` generates flags enums with well-defined semantics and ergonomic end-user APIs.
10
+
11
+
You can use `bitflags` to:
12
+
13
+
- provide more user-friendly bindings to C APIs where flags may or may not be fully known in advance.
14
+
- generate efficient options types with string parsing and formatting support.
15
+
16
+
You can't use `bitflags` to:
17
+
18
+
- guarantee only bits corresponding to defined flags will ever be set. `bitflags` allows access to the underlying bits type so arbitrary bits may be set.
19
+
- define bitfields. `bitflags` only generates types where set bits denote the presence of some combination of flags.
0 commit comments