Trait nibble::pair::U4Cell [] [src]

pub trait U4Cell: Debug {
    fn get_hi(&self) -> u4hi;
fn get_lo(&self) -> u4lo;
fn set_from_hi(&self, hi: u4hi);
fn set_from_lo(&self, lo: u4lo);
fn set<T: u4>(&self, nib: T)
    where
        Self: Sized
;
fn swap(&self, nib: &U4Cell); }

A generic cell which contains a nibble.

Required Methods

Gets a high-order version of the nibble in this cell.

Gets a low-order version of the nibble in this cell.

Sets the value of the nibble in this cell, given a high-order nibble.

Sets the value of the nibble in this cell, given a low-order nibble.

Sets the value of the nibble in this cell, given a generic nibble.

Note that this is preferred, unless trait objects are used.

Swaps the nibble with the value of another nibble.

Implementors