width_counters

Crates.iowidth_counters
lib.rswidth_counters
version2.0.2
sourcesrc
created_at2023-05-11 23:43:46.993291
updated_at2024-05-09 22:30:01.382041
descriptionAtomic counters with variable bit widths and customizable atomic ordering
homepage
repositoryhttps://github.com/anwarhahjjeffersongeorge/width_counters
max_upload_size
id862506
size50,368
AHJ George (anwarhahjjeffersongeorge)

documentation

README

width_counters

Usability:

License: MIT OR Apache-2.0 crates.io docs.rs

Development:

Maintenance: actively-developed GitHub Actions: CI


Overview

Atomic, thread-safe counters of differing integer widths

Comes with

These counters support

  • Incrementing/decrementing by default (1) or specified amounts,
  • Using per-operation atomic orderings, (see this also)
  • Instantiation with default offset (0) and default atomic ordering ( sequentially consistent ),
  • Instantiation with custom offset, custom ordering or both,
  • Instantiation with custom enum-flag-based counting behaviors (monotonic, nonmonotonic, incrementing, decrementing, cyclic, acyclic)
  • PartialEq, Eq, Hash, PartialOrd, Ord, Clone, Debug, Display
  • Send, Sync

Optional features

  • serde: Enable de/serialization
Commit count: 48

cargo fmt