[][src]Trait bitcursor::Unit

pub trait Unit: BitAnd<Output = Self> + BitAndAssign + BitOr<Output = Self> + BitOrAssign + BitXor<Output = Self> + BitXorAssign + Sized + Copy + Clone + Debug + Display {
    const SIZE: u8;

    fn unitfrom(val: u128) -> Self;
fn shr(self, rhs: Self) -> Self;
fn shl(self, rhs: Self) -> Self;
fn checked_shr(self, rhs: u32) -> Option<Self>;
fn checked_shl(self, rhs: u32) -> Option<Self>;
fn read_bit_at(&self, rhs: u8) -> Option<bool>;
fn into_u8(self) -> u8;
fn into_u16(self) -> u16;
fn into_u32(self) -> u32;
fn into_u64(self) -> u64;
fn into_u128(self) -> u128;
fn into_i8(self) -> i8;
fn into_i16(self) -> i16;
fn into_i32(self) -> i32;
fn into_i64(self) -> i64;
fn into_i128(self) -> i128; }

Associated Constants

const SIZE: u8

Loading content...

Required methods

fn unitfrom(val: u128) -> Self

fn shr(self, rhs: Self) -> Self

fn shl(self, rhs: Self) -> Self

fn checked_shr(self, rhs: u32) -> Option<Self>

fn checked_shl(self, rhs: u32) -> Option<Self>

fn read_bit_at(&self, rhs: u8) -> Option<bool>

fn into_u8(self) -> u8

fn into_u16(self) -> u16

fn into_u32(self) -> u32

fn into_u64(self) -> u64

fn into_u128(self) -> u128

fn into_i8(self) -> i8

fn into_i16(self) -> i16

fn into_i32(self) -> i32

fn into_i64(self) -> i64

fn into_i128(self) -> i128

Loading content...

Implementations on Foreign Types

impl Unit for u8[src]

impl Unit for u16[src]

impl Unit for u32[src]

impl Unit for u64[src]

impl Unit for u128[src]

impl Unit for i8[src]

impl Unit for i16[src]

impl Unit for i32[src]

impl Unit for i64[src]

impl Unit for i128[src]

impl Unit for bool[src]

Loading content...

Implementors

Loading content...