crispii_bits 1.0.1

Bit-related functionality for Rust's native u{int} types (usize excluded)
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::{
    enums::Bin,
    traits::UnsignedInteger,
};

#[allow(private_bounds)]
pub trait Set : UnsignedInteger {
    type Pos;

    fn set_bit(self, pos: Self::Pos, bin: Bin) -> Self;
}