Trait bitfield::BitRange

source ·
pub trait BitRange<T> {
    // Required methods
    fn bit_range(&self, msb: usize, lsb: usize) -> T;
    fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T);
}
Expand description

A trait to get or set ranges of bits.

Required Methods§

source

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

Get a range of bits.

source

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)

Set 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§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i8)

source§

impl BitRange<i8> for u16

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i8)

source§

impl BitRange<i8> for u32

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i8)

source§

impl BitRange<i8> for u64

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i8)

source§

impl BitRange<i8> for u128

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i8)

source§

impl BitRange<i16> for u8

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i16)

source§

impl BitRange<i16> for u16

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i16)

source§

impl BitRange<i16> for u32

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i16)

source§

impl BitRange<i16> for u64

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i16)

source§

impl BitRange<i16> for u128

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i16)

source§

impl BitRange<i32> for u8

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i32)

source§

impl BitRange<i32> for u16

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i32)

source§

impl BitRange<i32> for u32

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i32)

source§

impl BitRange<i32> for u64

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i32)

source§

impl BitRange<i32> for u128

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i32)

source§

impl BitRange<i64> for u8

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i64)

source§

impl BitRange<i64> for u16

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i64)

source§

impl BitRange<i64> for u32

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i64)

source§

impl BitRange<i64> for u64

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i64)

source§

impl BitRange<i64> for u128

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i64)

source§

impl BitRange<i128> for u8

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i128)

source§

impl BitRange<i128> for u16

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i128)

source§

impl BitRange<i128> for u32

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i128)

source§

impl BitRange<i128> for u64

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i128)

source§

impl BitRange<i128> for u128

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i128)

source§

impl BitRange<u8> for u8

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u8)

source§

impl BitRange<u8> for u16

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u8)

source§

impl BitRange<u8> for u32

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u8)

source§

impl BitRange<u8> for u64

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u8)

source§

impl BitRange<u8> for u128

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u8)

source§

impl BitRange<u16> for u8

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u16)

source§

impl BitRange<u16> for u16

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u16)

source§

impl BitRange<u16> for u32

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u16)

source§

impl BitRange<u16> for u64

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u16)

source§

impl BitRange<u16> for u128

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u16)

source§

impl BitRange<u32> for u8

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u32)

source§

impl BitRange<u32> for u16

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u32)

source§

impl BitRange<u32> for u32

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u32)

source§

impl BitRange<u32> for u64

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u32)

source§

impl BitRange<u32> for u128

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u32)

source§

impl BitRange<u64> for u8

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u64)

source§

impl BitRange<u64> for u16

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u64)

source§

impl BitRange<u64> for u32

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u64)

source§

impl BitRange<u64> for u64

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u64)

source§

impl BitRange<u64> for u128

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u64)

source§

impl BitRange<u128> for u8

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u128)

source§

impl BitRange<u128> for u16

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u128)

source§

impl BitRange<u128> for u32

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u128)

source§

impl BitRange<u128> for u64

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u128)

source§

impl BitRange<u128> for u128

source§

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

source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u128)

Implementors§