Crate voncount

Source
Expand description

The voncount crate provides utilities for keeping a running count of things.

Like the lovable Count von Count from Sesame Street, the voncount crate loves to count things. We provide the Counter trait which can be implemented on types which try to count things. We also provide two structs which implement the Counter trait:

  • ReadCounter
  • WriteCounter

Structs§

ReadCounter
Wraps any implementation of std::io::Read and counts the bytes read.
WriteCounter
Wraps any implementation of std::io::Write and counts the bytes written.

Traits§

Counter
Describes types which count things. What they count is up to them.