Trait serial_int::Serial[][src]

pub trait Serial where
    Self: Clone + Ord
{ const START: Self; fn next_increment(&self) -> Self;
fn prev_increment(&self) -> Self;
fn is_max_value(&self) -> bool; }

A trait that defines how a type is used by SerialGenerator.

Associated Constants

const START: Self[src]

The default initial and lowest possible value.

Loading content...

Required methods

fn next_increment(&self) -> Self[src]

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

fn prev_increment(&self) -> Self[src]

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

fn is_max_value(&self) -> bool[src]

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

Loading content...

Implementations on Foreign Types

impl Serial for u8[src]

impl Serial for u16[src]

impl Serial for u32[src]

impl Serial for u64[src]

impl Serial for u128[src]

impl Serial for usize[src]

Loading content...

Implementors

Loading content...