Registry / utility / bytecount

bytecount

JSON →
library0.6.9rscratesunverified

Fast byte counting and UTF-8 code point counting in byte slices.

# Cargo.toml [dependencies] bytecount = "0.6.9"
INSTALL
IMPORT
SIG · BYTECOUNT
B
bytecount
utilityrustv0.6.9
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

count
use bytecount;

Count occurrences of a specific byte in a byte slice.

use bytecount::count; fn main() { let bytes = b"hello world"; let n = count(bytes, b'l'); println!("Number of 'l's: {}", n); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.6.9latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
bytecount — cargo add bytecount · libregistry