[][src]Trait kernel::common::cells::NumericCellExt

pub trait NumericCellExt<T> where
    T: Copy + Add<T> + Sub<T>, 
{ fn add(&self, val: T);
fn subtract(&self, val: T);
fn increment(&self);
fn decrement(&self); }

Required methods

fn add(&self, val: T)

Add the passed in val to the stored value.

fn subtract(&self, val: T)

Subtract the passed in val from the stored value.

fn increment(&self)

Add 1 to the stored value.

fn decrement(&self)

Subtract 1 from the stored value.

Loading content...

Implementations on Foreign Types

impl<T> NumericCellExt<T> for Cell<T> where
    T: Sub<T, Output = T> + Add<T, Output = T> + Copy + From<usize>, 
[src]

Loading content...

Implementors

Loading content...