Trait NumericCellExt
pub trait NumericCellExt<T>{
// Required methods
fn add(&self, val: T);
fn subtract(&self, val: T);
fn increment(&self);
fn decrement(&self);
fn get_and_increment(&self) -> T;
fn get_and_decrement(&self) -> T;
}Required Methods§
fn add(&self, val: T)
fn add(&self, val: T)
Add the passed in val to the stored value.
fn subtract(&self, val: T)
fn subtract(&self, val: T)
Subtract the passed in val from the stored value.
fn increment(&self)
fn increment(&self)
Add 1 to the stored value.
fn decrement(&self)
fn decrement(&self)
Subtract 1 from the stored value.
fn get_and_increment(&self) -> T
fn get_and_increment(&self) -> T
Return the current value and then add 1 to the stored value.
fn get_and_decrement(&self) -> T
fn get_and_decrement(&self) -> T
Return the current value and then subtract 1 from the stored value.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".