pub trait BitRange<T> {
    fn bit_range<const START: usize, const END: usize>(self) -> T;
    fn set_bit_range<const START: usize, const END: usize>(
        self,
        value: T
    ) -> Self; }
Expand description

A trait to read or modify a range of bits inside a value.

Required Methods

Read the given bit range inside self as a value of type T

Set the given bit range inside self to a value of type T.

Implementations on Foreign Types

Implementors