kinded icon indicating copy to clipboard operation
kinded copied to clipboard

Const `.kind()` function

Open doonv opened this issue 1 year ago • 1 comments

It is currently impossible to use the .kind() function in const contexts.

Since you can't have const fn in traits, you could probably fix this by adding an optional cargo feature or macro attribute that can toggle behavior from using the Kinded trait to just implementing a const fn kind().

doonv avatar Jan 26 '24 20:01 doonv

Couldn't this be solved by moving the values to a Once?

j7nw4r avatar Aug 22 '24 23:08 j7nw4r