sbitty 1.1.1

library defining bitwise operations on standard integers type
Documentation

sbitty: when standard bits become easy Build Status Crate API

This crate aims to give simple interface to bit twiddling. There is lots of standard define behavior on bitwise operation like & | ^ ! but none for single bit operations on the standard int.

Some crates emulate bitfield but i found it restrictive since on all my project i usually use those operations on extra bit of a usable number.

Setup

In your Cargo.toml:

[dependencies]
sbitty = "^1.0.0"

In your source:

use sbitty::{GetBits,SetBits,IndexError};
use sbitty::*;
use sbitty::GetBits;