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

Methods to_usize() etc should be const-fn #82

Closed
Boscop opened this issue Sep 4, 2018 · 3 comments
Closed

Methods to_usize() etc should be const-fn #82

Boscop opened this issue Sep 4, 2018 · 3 comments

Comments

@Boscop
Copy link

Boscop commented Sep 4, 2018

The methods [to_usize()](Methods to_usize() etc should be const-fn) etc should be const-fn.

@Boscop
Copy link
Author

Boscop commented Sep 4, 2018

Nevermind, trait fns cannot be declared const :/

@Boscop Boscop closed this as completed Sep 4, 2018
@PTaylor-us
Copy link

PTaylor-us commented May 3, 2020

On nightly, one can impl const Trait for T. Perhaps something like that could be used.

I'm going to play around with it and see what the possibilities are.

@PTaylor-us
Copy link

I'm not having a huge amount of success. Here's where I'm at: playground

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