Counter Rs Versions Save

Simple object to count Rust iterables

v0.5.7

1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/coriolinus/counter-rs/compare/v0.5.6...v0.5.7

v0.5.6

1 year ago

What's Changed

Full Changelog: https://github.com/coriolinus/counter-rs/compare/v0.5.5...v0.5.6

v0.5.5

2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/coriolinus/counter-rs/compare/v0.5.4...v0.5.5

v0.5.4

2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/coriolinus/counter-rs/compare/v0.5.3...v0.5.4

v0.5.3

2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/coriolinus/counter-rs/compare/v0.5.2...v0.5.3

v0.5.2

3 years ago

Implementing these traits gives users more ways to usefully combine their counts.

v0.5.1

3 years ago

This release removes self-cloning from the Add, Sub, and BitOr impls. This also fixes a number of other clippy, minor clippy lints.

v0.5.0

4 years ago

Counters now implement Index and IndexMut, so they can have implicit zero counts. In other words:

# use counter::Counter;
let counter = "aaa".chars().collect::<Counter<_>>();
assert_eq!(counter[&'b'], 0);
// panics
// assert_eq!((*counter)[&'b'], 0);

This is a breaking change, causing a minor version bump, because it is not impossible that previous code depended on indexing panicing for unknown entries. Code which does not panic as part of its intended control flow will not be affected.

v0.4.3

5 years ago

All Copy types are also Clone types where the clone bound happens to be really cheap. Bounding N: Clone instead of N: Copy means that we can use numeric types like num::BigInteger, which are not Copy, and things still work. You pay a bit more runtime cost, but if you're using a non-default counter type, presumably you know the costs of your actions.

v0.4.2

5 years ago
  • Add module documentation from README
  • Make all doctests pass
  • Update README from module documentation
  • Add inline doctest examples for most methods
  • remove N: Clone mandatory bound