Crate width_counters
source ·Expand description
Atomic, monotonically increasing counters of differing integer widths
Comes with
These counters support
- Incrementing by default (1) or jumping by specified amounts,
- Using per-operation atomic orderings, (see this also)
- Const instantiation with default offset (0) and default atomic ordering ( sequentially consistent ),
- Const instantiation with custom offset, custom ordering or both, and
- PartialEq, Eq, Hash, PartialOrd, Ord, Clone, Debug, Display
Optional features
serde: Enable de/serialization
Structs
- A monotonically increasing atomic counter using AtomicIsize / (core::isize).
- A monotonically increasing atomic counter using AtomicUsize / (core::usize).