sbitty

Crates.iosbitty
lib.rssbitty
version1.1.1
sourcesrc
created_at2019-08-19 17:27:42.113446
updated_at2020-11-21 14:55:37.51171
descriptionlibrary defining bitwise operations on standard integers type
homepagehttps://github.com/BiscayRobin/sbitty
repositoryhttps://github.com/BiscayRobin/sbitty
max_upload_size
id158132
size18,040
(BiscayRobin)

documentation

README

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

cargo fmt