Trait stable_id::Successor

source ·
pub trait Successor {
    // Required method
    fn next_value(self) -> Self;
}
Expand description

Successor trait for numbers.

Required Methods§

source

fn next_value(self) -> Self

Return self + 1. Panics if self is at maximum value.

Implementations on Foreign Types§

source§

impl Successor for u64

source§

impl Successor for usize

source§

impl Successor for u8

source§

impl Successor for u32

source§

impl Successor for u16

Implementors§