bitpat 0.1.0

Bit-level matching against values
Documentation

bitpat - Bit-level pattern matching

crates.io docs.rs Build Status

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.0"

Then import the crate into your Rust code:

extern crate bitpat;