Skip to content

Commit

Permalink
Parameterize Counter on the numeric type
Browse files Browse the repository at this point in the history
Closes #5.

This is a breaking change which adds a second type parameter to
Counter, which is used to actually count the values. Some existing
code may fail due to the new required parameter. In particular,
type discovery appears not to be able to correctly determine that
N should be usize by default when creating a counter via init.
  • Loading branch information
coriolinus committed Aug 7, 2018
1 parent 8835542 commit cb24e7f
Show file tree
Hide file tree
Showing 2 changed files with 110 additions and 68 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "counter"
version = "0.3.3"
version = "0.4.0"
authors = ["Peter Goodspeed-Niklaus <peter.r.goodspeedniklaus@gmail.com>"]
description = "Simple package to count generic iterables"
repository = "https://github.com/coriolinus/counter-rs"
Expand All @@ -10,3 +10,4 @@ keywords = ["count"]
license = "MIT"

[dependencies]
num-traits = "0.2"
Loading

0 comments on commit cb24e7f

Please sign in to comment.