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.

Required Methods

Read the value of the given bit inside self.

Set the value of the given bit inside self to 1 if value is true, and 0 otherwise.

Implementations on Foreign Types

Implementors