Trait autoincrement::Atomic [−][src]
pub trait Atomic: Send + Sync + Debug {
type Inner: Copy;
fn new(initial_value: Self::Inner) -> Self;
fn next(&self, step: Self::Inner) -> Self::Inner;
fn current(&self) -> Self::Inner;
}
Expand description
Only for type-safe purposes. You don’t need to use this trait.