Trait proc_bitfield::Bit
source · [−]pub trait Bit {
fn bit<const BIT: usize>(self) -> bool;
fn set_bit<const BIT: usize>(self, value: bool) -> Self;
}
Expand description
A trait to read or modify a single bit inside a value.
pub trait Bit {
fn bit<const BIT: usize>(self) -> bool;
fn set_bit<const BIT: usize>(self, value: bool) -> Self;
}
A trait to read or modify a single bit inside a value.