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

Const .kind() function #12

Open
doonv opened this issue Jan 26, 2024 · 1 comment
Open

Const .kind() function #12

doonv opened this issue Jan 26, 2024 · 1 comment

Comments

@doonv
Copy link

doonv commented Jan 26, 2024

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().

@j7nw4r
Copy link

j7nw4r commented Aug 22, 2024

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

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