cephas
Tiny counter utilities for Knott ecosystem crates.
Purpose
cephas provides a small zero-dependency counter type for terminal-style loops
and state-tracking utilities where a single monotonically increasing value is
needed.
Features
- Simple counter — increment and reset state without external dependencies
- Saturating increment — avoids overflow panics in long-running loops
- Copy + debug friendly — easy to pass around in tests and hot paths
Install
Usage
use CephasCounter;
let mut counter = new;
assert_eq!;
let first = counter.bump;
let second = counter.bump;
assert_eq!;
assert_eq!;
License
MIT OR Apache-2.0