bitpat

Crates.iobitpat
lib.rsbitpat
version0.1.1
sourcesrc
created_at2018-08-01 22:25:13.138514
updated_at2018-08-01 22:55:33.773569
descriptionBit-level matching against values
homepage
repositoryhttps://github.com/jonas-schievink/bitpat.git
max_upload_size
id77017
size17,457
Jonas Schievink (jonas-schievink)

documentation

https://docs.rs/bitpat/

README

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;
Commit count: 11

cargo fmt