2 releases

Uses old Rust 2015

0.1.1 Aug 1, 2018
0.1.0 Aug 1, 2018

#13 in #bit-level

Download history 9/week @ 2024-03-11 16/week @ 2024-03-18 29/week @ 2024-03-25 64/week @ 2024-04-01 17/week @ 2024-04-08 25/week @ 2024-04-15 10/week @ 2024-04-22 2/week @ 2024-04-29 11/week @ 2024-05-06 33/week @ 2024-05-13 55/week @ 2024-05-20 29/week @ 2024-05-27 10/week @ 2024-06-03 27/week @ 2024-06-10 87/week @ 2024-06-17 29/week @ 2024-06-24

154 downloads per month
Used in 2 crates

CC0 license

10KB
76 lines

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

No runtime deps