Trait stable_id::Maximum

source ·
pub trait Maximum {
    // Required method
    fn max_value() -> Self;
}
Expand description

A trait that describes the max value of an unsigned integer. This trait is used to detect overflow. Also, it’s used like a NULL terminator for the free list in [Tec].

Required Methods§

source

fn max_value() -> Self

Generally this should be X::MAX, where X is an unsigned integer. The value is used to detect overflow.

Implementations on Foreign Types§

source§

impl Maximum for u32

source§

impl Maximum for usize

source§

impl Maximum for u64

source§

impl Maximum for u16

source§

impl Maximum for u8

Implementors§