Trait diem_id_generator::IdGenerator[][src]

pub trait IdGenerator<Id: Copy + Debug> {
    fn next(&self) -> Id;
}
Expand description

A generic IdGenerator trait, it’s intentionally generic to allow for different orders and types of Id

Required methods

Retrieves a new Id

Implementors