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
When using TinyStr, I find that I often want to write strings that should be statically compiled to a TinyStr. Instead, I have to pick between parsing the strings into TinyStr at runtime, or hard-coding the bits into my source file. It would be much nicer if I could do
tiny_str_4!("root");
and have that automatically compile to the TinyStr4 representation of that string (or fail to compile if the string is invalid).
The text was updated successfully, but these errors were encountered:
Ehh, yeah, I also would love to be able to construct them from str. I wish the const functions were advanced enough to give us that for free, but we're not there yet.
When using TinyStr, I find that I often want to write strings that should be statically compiled to a TinyStr. Instead, I have to pick between parsing the strings into TinyStr at runtime, or hard-coding the bits into my source file. It would be much nicer if I could do
and have that automatically compile to the TinyStr4 representation of that string (or fail to compile if the string is invalid).
The text was updated successfully, but these errors were encountered: