tock_cells

Module numeric_cell_ext

Source
Expand description

NumericCellExt extension trait for Cells.

Adds a suite of convenience functions to Cells 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;

Traitsยง