bitpat 0.1.1

Bit-level matching against values
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented1 out of 1 items with examples
  • Size
  • Source code size: 22.93 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.17 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • jonas-schievink

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;