[−][src]Crate rit
Bit operation for rust. Gives 4 marcos for get, set and reset a bit for any number type.
rit::eq1!(0b0000_1111, 0) // Test if a bit is set.
rit::set!(0b0000_1111, 0) // Set a bit.
rit::clr!(0b0000_1111, 0) // Reset a bit.
Macros
clr | Reset a bit. |
eq0 | Test if a bit is unset. |
eq1 | Test if a bit is set. |
set | Set a bit. |