Trait bitfield::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§