pub trait Incrementable {
    // Required methods
    fn increment(&self) -> Self;
    fn initial_value() -> Self;
}
Expand description

For example: allows new identifiers to be created in a linear fashion.

Required Methods§

source

fn increment(&self) -> Self

source

fn initial_value() -> Self

Implementations on Foreign Types§

source§

impl Incrementable for i32

source§

fn increment(&self) -> Self

source§

fn initial_value() -> Self

source§

impl Incrementable for u16

source§

fn increment(&self) -> Self

source§

fn initial_value() -> Self

source§

impl Incrementable for i64

source§

fn increment(&self) -> Self

source§

fn initial_value() -> Self

source§

impl Incrementable for u32

source§

fn increment(&self) -> Self

source§

fn initial_value() -> Self

source§

impl Incrementable for u64

source§

fn increment(&self) -> Self

source§

fn initial_value() -> Self

source§

impl Incrementable for u8

source§

fn increment(&self) -> Self

source§

fn initial_value() -> Self

source§

impl Incrementable for i16

source§

fn increment(&self) -> Self

source§

fn initial_value() -> Self

source§

impl Incrementable for u128

source§

fn increment(&self) -> Self

source§

fn initial_value() -> Self

source§

impl Incrementable for i8

source§

fn increment(&self) -> Self

source§

fn initial_value() -> Self

source§

impl Incrementable for i128

source§

fn increment(&self) -> Self

source§

fn initial_value() -> Self

Implementors§