nix/CONVENTIONS.md
2016-02-01 16:24:19 -05:00

377 B

Bitflags

We represent sets of constants that are intended to be combined using bitwise operations as parameters to functions by types defined using the bitflags! macro from the bitflags crate. Instead of providing the concrete values ourselves, we prefer taking the constants defined in libc crate.