You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Id be interested in a helper function (since traits cant have const fns atm) which can evaluate the width of a &str (and char) at compile time. I could even propose a PR for that if others think this is a nice idea. And maybe even as an optional feature.
Ive looked into it and found out that we would need rust-lang/rust#63997 solved (for making a const binary_search implementation) or generally have const traits. I could create a PR for my current effort, making many internal fns const.
Activity
Manishearth commentedon Jul 14, 2025
If it would be rather straightforward I'm in favor.
lunyav commentedon Jul 17, 2025
Ive looked into it and found out that we would need rust-lang/rust#63997 solved (for making a const binary_search implementation) or generally have const traits. I could create a PR for my current effort, making many internal fns const.