Crates.io | bitpat |
lib.rs | bitpat |
version | 0.1.1 |
source | src |
created_at | 2018-08-01 22:25:13.138514 |
updated_at | 2018-08-01 22:55:33.773569 |
description | Bit-level matching against values |
homepage | |
repository | https://github.com/jonas-schievink/bitpat.git |
max_upload_size | |
id | 77017 |
size | 17,457 |
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.
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;