Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Associated constant for to_int #3

Open
ExpHP opened this issue Mar 15, 2018 · 1 comment
Open

Associated constant for to_int #3

ExpHP opened this issue Mar 15, 2018 · 1 comment

Comments

@ExpHP
Copy link

ExpHP commented Mar 15, 2018

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

This feature has landed! 🎉

(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 ExpHP changed the title Associated constant for to_int Associated constant for to_int Mar 15, 2018
@paholg
Copy link
Owner

paholg commented Mar 18, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants