Closed Boscop closed 6 years ago
Nevermind, trait fns cannot be declared const :/
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.
I'm not having a huge amount of success. Here's where I'm at: playground
The methods [
to_usize()
](Methods to_usize() etc should be const-fn) etc should be const-fn.