2 releases
Uses old Rust 2015
0.1.1 | Aug 1, 2018 |
---|---|
0.1.0 | Aug 1, 2018 |
#13 in #bit-level
154 downloads per month
Used in 2 crates
10KB
76 lines
bitpat - Bit-level pattern matching
This crate provides the bitpat!
macro, which can match a value against a bit
pattern. This is useful, for example, for low-level code that inspects
individual bits in data such as registers or machine instructions.
Please refer to the changelog to see what changed in the last releases.
Usage
Start by adding an entry to your Cargo.toml
:
[dependencies]
bitpat = "0.1.1"
Then import the crate into your Rust code:
#[macro_use] extern crate bitpat;
lib.rs
:
Allows bit-level matching against values.
Please refer to the bitpat!
macro for details.