Trait serial_int::Serial
source · [−]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
Required methods
fn next_increment(&self) -> Self
fn next_increment(&self) -> Self
Returns the next sequential value. Returns an equal value if it is at its maximum.
fn prev_increment(&self) -> Self
fn prev_increment(&self) -> Self
Returns the previous sequential value. Returns an equal value if it is at its minimum.
fn is_max_value(&self) -> bool
fn is_max_value(&self) -> bool
Returns a boolean representing whether the value is equal to its maximum.