Trait bitfield::BitMut

source ·
pub trait BitMut {
    // Required method
    fn set_bit(&mut self, bit: usize, value: bool);
}
Expand description

A trait to set a single bit.

This trait is implemented for all type that implement BitRangeMut<u8>.

Required Methods§

source

fn set_bit(&mut self, bit: usize, value: bool)

Set a single bit.

Implementors§

source§

impl<T: BitRangeMut<u8>> BitMut for T