pub fn sequence_next(&self, worker_index: usize) -> usize {
        debug_assert!(worker_index < self.inner().nworkers);
        let mut entry = self
            .local_store()
            .entry(WorkerId(worker_index))
            .or_insert(0);
        let result = *entry;
        *entry += 1;
        result
    }
/// A per-worker sequential counter.
///
/// This method can be used to generate unique identifiers that will be the
/// same across all worker threads.  Repeated calls to this function
/// with the same worker index generate numbers 0, 1, 2, ...
A per-worker sequential counter.
This method can be used to generate unique identifiers that will be the
same across all worker threads.  Repeated calls to this function
with the same worker index generate numbers 0, 1, 2.
A per - worker sequential counter . This method can be used to generate unique identifiers that will be the same across all worker threads . Repeated calls to this function with the same worker index generate numbers 0 1 2 .
pub fn sequence_next(&self, worker_index: usize) -> usize {
        debug_assert!(worker_index < self.inner().nworkers);
        let mut entry = self
            .local_store()
            .entry(WorkerId(worker_index))
            .or_insert(0);
        let result = *entry;
        *entry += 1;
        result
    }
pub fn sequence_next ( & self , worker_index : usize ) -> usize { debug_assert ! ( worker_index self inner ( ) nworkers ) ; let mut entry = self . local_store ( ) . entry ( WorkerId ( worker_index ) ) . or_insert ( 0 ) ; let result = * entry ; * entry += 1 ; result }
A per-worker sequential counter.
A per - worker sequential counter .
&self
worker_index
usize