Struct bitmap::FourBits [] [src]

pub struct FourBits;

Helper type for semantic-free values of fixed width

Trait Implementations

impl Element for FourBits
[src]

type W = ()

Type passed to the width method.

type R = u64

Type decoded from from_bits and thus Bitmap::get.

fn width(_w: ()) -> usize

Return the width of values of this type, in bits. Read more

fn from_bits(bits: u64) -> Option<u64>

Decode a value from raw bits.

fn to_bits(value: u64) -> u64

Encode a value into raw bits. Read more