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
fn get_hi(&self) -> u4hi
Gets a high-order version of the nibble in this cell.
fn get_lo(&self) -> u4lo
Gets a low-order version of the nibble in this cell.
fn set_from_hi(&self, hi: u4hi)
Sets the value of the nibble in this cell, given a high-order nibble.
fn set_from_lo(&self, lo: u4lo)
Sets the value of the nibble in this cell, given a low-order nibble.
fn set<T: u4>(&self, nib: T) where
Self: Sized,
Self: Sized,
Sets the value of the nibble in this cell, given a generic nibble.
Note that this is preferred, unless trait objects are used.
fn swap(&self, nib: &U4Cell)
Swaps the nibble with the value of another nibble.