[][src]Trait bitfield::BitRange

pub trait BitRange<T> {
    fn bit_range(&self, msb: usize, lsb: usize) -> T;
fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T); }

A trait to get or set ranges of bits.

Required methods

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

Get a range of bits.

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

Set a range of bits.

Loading content...

Implementors

impl BitRange<i128> for u8[src]

impl BitRange<i128> for u16[src]

impl BitRange<i128> for u32[src]

impl BitRange<i128> for u64[src]

impl BitRange<i128> for u128[src]

impl BitRange<i16> for u8[src]

impl BitRange<i16> for u16[src]

impl BitRange<i16> for u32[src]

impl BitRange<i16> for u64[src]

impl BitRange<i16> for u128[src]

impl BitRange<i32> for u8[src]

impl BitRange<i32> for u16[src]

impl BitRange<i32> for u32[src]

impl BitRange<i32> for u64[src]

impl BitRange<i32> for u128[src]

impl BitRange<i64> for u8[src]

impl BitRange<i64> for u16[src]

impl BitRange<i64> for u32[src]

impl BitRange<i64> for u64[src]

impl BitRange<i64> for u128[src]

impl BitRange<i8> for u8[src]

impl BitRange<i8> for u16[src]

impl BitRange<i8> for u32[src]

impl BitRange<i8> for u64[src]

impl BitRange<i8> for u128[src]

impl BitRange<u128> for u8[src]

impl BitRange<u128> for u16[src]

impl BitRange<u128> for u32[src]

impl BitRange<u128> for u64[src]

impl BitRange<u128> for u128[src]

impl BitRange<u16> for u8[src]

impl BitRange<u16> for u16[src]

impl BitRange<u16> for u32[src]

impl BitRange<u16> for u64[src]

impl BitRange<u16> for u128[src]

impl BitRange<u32> for u8[src]

impl BitRange<u32> for u16[src]

impl BitRange<u32> for u32[src]

impl BitRange<u32> for u64[src]

impl BitRange<u32> for u128[src]

impl BitRange<u64> for u8[src]

impl BitRange<u64> for u16[src]

impl BitRange<u64> for u32[src]

impl BitRange<u64> for u64[src]

impl BitRange<u64> for u128[src]

impl BitRange<u8> for u8[src]

impl BitRange<u8> for u16[src]

impl BitRange<u8> for u32[src]

impl BitRange<u8> for u64[src]

impl BitRange<u8> for u128[src]

Loading content...