Struct bip_util::trans::SequentialIds
[−]
[src]
pub struct SequentialIds<T> { /* fields omitted */ }
Generates sequentially unique ids and wraps when overflow occurs.
Methods
impl<T> SequentialIds<T> where
T: Zero,
[src]
T: Zero,
fn new() -> SequentialIds<T>
Create a new SequentialIds struct.
fn start_at(start: T) -> SequentialIds<T>
Create a new SequentialIds struct at the starting value.
Trait Implementations
impl<T> TransactionIds<T> for SequentialIds<T> where
T: One + Clone,
Wrapping<T>: Add<Wrapping<T>, Output = Wrapping<T>>,
[src]
T: One + Clone,
Wrapping<T>: Add<Wrapping<T>, Output = Wrapping<T>>,