Struct diem_id_generator::U32IdGenerator[][src]

pub struct U32IdGenerator { /* fields omitted */ }
Expand description

A generic in order IdGenerator using an AtomicU32 to guarantee uniqueness

Implementations

Creates a new [InOrderIdGenerator] initialized to 0

Creates a new [InOrderIdGenerator] with an initial_value

Trait Implementations

Formats the value using the given formatter. Read more

Retrieves the next ID, wrapping on overflow

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.