pub trait Incrementable {
    // Required method
    fn increment(&mut self);
}
Expand description

A trait for “incrementable” types, i.e., types that have some notion of order of its members.

Required Methods§

source

fn increment(&mut self)

Increment the type instance to its next value. Overflows are assumed to be taken care of by the type internal logic.

Implementors§

source§

impl<T> Incrementable for Twhere T: CheckedAdd + Zero + One,