| Crates.io | sbitty |
| lib.rs | sbitty |
| version | 1.1.1 |
| created_at | 2019-08-19 17:27:42.113446+00 |
| updated_at | 2020-11-21 14:55:37.51171+00 |
| description | library defining bitwise operations on standard integers type |
| homepage | https://github.com/BiscayRobin/sbitty |
| repository | https://github.com/BiscayRobin/sbitty |
| max_upload_size | |
| id | 158132 |
| size | 18,040 |
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.
In your Cargo.toml:
[dependencies]
sbitty = "^1.0.0"
In your source:
use sbitty::{GetBits,SetBits,IndexError};
use sbitty::*;
use sbitty::GetBits;