seqid 0.1.3

Sequential ID generator traits with some default implementations
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Common trait for an non-infinite ID generator.
//! This generator may exhaust it's output space and return `None`.



pub trait FiniteSequential {
    /// The output of this sequential ID generator.
    type Output;

    /// Requests the next ID.
    fn next(&mut self) -> Option<Self::Output>;
}