bitfield

Trait BitRange

Source
pub trait BitRange<T> {
    // Required method
    fn bit_range(&self, msb: usize, lsb: usize) -> T;
}
Expand description

A trait to get ranges of bits.

Required Methods§

Source

fn bit_range(&self, msb: usize, lsb: usize) -> T

Get a range of bits.

Implementations on Foreign Types§

Source§

impl BitRange<i8> for u8

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i8

Source§

impl BitRange<i8> for u16

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i8

Source§

impl BitRange<i8> for u32

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i8

Source§

impl BitRange<i8> for u64

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i8

Source§

impl BitRange<i8> for u128

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i8

Source§

impl BitRange<i16> for u8

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i16

Source§

impl BitRange<i16> for u16

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i16

Source§

impl BitRange<i16> for u32

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i16

Source§

impl BitRange<i16> for u64

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i16

Source§

impl BitRange<i16> for u128

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i16

Source§

impl BitRange<i32> for u8

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i32

Source§

impl BitRange<i32> for u16

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i32

Source§

impl BitRange<i32> for u32

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i32

Source§

impl BitRange<i32> for u64

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i32

Source§

impl BitRange<i32> for u128

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i32

Source§

impl BitRange<i64> for u8

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i64

Source§

impl BitRange<i64> for u16

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i64

Source§

impl BitRange<i64> for u32

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i64

Source§

impl BitRange<i64> for u64

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i64

Source§

impl BitRange<i64> for u128

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i64

Source§

impl BitRange<i128> for u8

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i128

Source§

impl BitRange<i128> for u16

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i128

Source§

impl BitRange<i128> for u32

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i128

Source§

impl BitRange<i128> for u64

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i128

Source§

impl BitRange<i128> for u128

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i128

Source§

impl BitRange<u8> for u8

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u8

Source§

impl BitRange<u8> for u16

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u8

Source§

impl BitRange<u8> for u32

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u8

Source§

impl BitRange<u8> for u64

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u8

Source§

impl BitRange<u8> for u128

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u8

Source§

impl BitRange<u16> for u8

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u16

Source§

impl BitRange<u16> for u16

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u16

Source§

impl BitRange<u16> for u32

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u16

Source§

impl BitRange<u16> for u64

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u16

Source§

impl BitRange<u16> for u128

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u16

Source§

impl BitRange<u32> for u8

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u32

Source§

impl BitRange<u32> for u16

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u32

Source§

impl BitRange<u32> for u32

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u32

Source§

impl BitRange<u32> for u64

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u32

Source§

impl BitRange<u32> for u128

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u32

Source§

impl BitRange<u64> for u8

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u64

Source§

impl BitRange<u64> for u16

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u64

Source§

impl BitRange<u64> for u32

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u64

Source§

impl BitRange<u64> for u64

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u64

Source§

impl BitRange<u64> for u128

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u64

Source§

impl BitRange<u128> for u8

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u128

Source§

impl BitRange<u128> for u16

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u128

Source§

impl BitRange<u128> for u32

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u128

Source§

impl BitRange<u128> for u64

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u128

Source§

impl BitRange<u128> for u128

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u128

Implementors§