Expand description
NumericCellExt
extension trait for Cell
s.
Adds a suite of convenience functions to Cell
s that contain numeric
types. Cells that contains types that can meaningfully execute arithmetic
operations can use mechanisms such as cell.add(val)
rather than
cell.set(cell.get() + val)
.
To use these traits, simply pull them into scope:
extern crate tock_cells;
use tock_cells::numeric_cell_ext::NumericCellExt;