peano icon indicating copy to clipboard operation
peano copied to clipboard

Associated constant for to_int

Open ExpHP opened this issue 6 years ago • 1 comments

Once Rust implements associated constants, an associated constant will replace the function to_int().

This feature has landed! :tada:

(by the way, despite what the toplevel docs say, this crate isn't entirely useless; there's no better representation for indexing an HList!)

ExpHP avatar Mar 15 '18 03:03 ExpHP

So it has. I have just recently implemented it in v1.10 of typenum. I would accept a PR to add associated constants here, but am unlikely to ever do it myself.

paholg avatar Mar 18 '18 20:03 paholg