Closed winestone closed 1 year ago
Hi, would there be any interest/objections for adding a const field to ToInt? Roughly something like this:
const
ToInt
pub trait ToInt<T> { fn to_int() -> T; + const INT_VALUE: T; }
This would allow the trait to be used in a const fn context.
const fn
I'm happy to make the change along with any testing/documentation/etc wanted.
I have no objections.
Hi, would there be any interest/objections for adding a
const
field toToInt
? Roughly something like this:This would allow the trait to be used in a
const fn
context.I'm happy to make the change along with any testing/documentation/etc wanted.