#bit #bits #utilities

no-std bitut

simple bit manipulation utilities

1 unstable release

0.1.0 Feb 4, 2024

#403 in No standard library

Apache-2.0

9KB
158 lines

Crate that provides a BitUtils trait which implements basic bit operations on integer types. Allows getting/setting the value of a bit or a range of bits. no-std.

Features

  • assertions: adds debug assertions that verify valid indices.
  • const_impl (nightly only): makes BitUtils a const trait.

lib.rs:

Crate that provides a BitUtils trait which implements basic bit operations on integer types. Allows getting/setting the value of a bit or a range of bits.

Features

  • assertions: adds debug assertions that verify valid indices.
  • const_impl (nightly only): makes BitUtils a const trait.

No runtime deps

Features