pub trait Serial: PartialEq {
    const START: Self;

    fn next_increment(&self) -> Self;
fn prev_increment(&self) -> Self;
fn is_max_value(&self) -> bool; }
Expand description

Defines how a type is used by SerialGenerator.

Associated Constants

The default initial and lowest possible value.

Required methods

Returns the next sequential value. Returns an equal value if it is at its maximum.

Returns the previous sequential value. Returns an equal value if it is at its minimum.

Returns a boolean representing whether the value is equal to its maximum.

Implementations on Foreign Types

Implementors