|
|
|
|
|
by pmarreck
2720 days ago
|
|
Does this bug exist because it would be too expensive to check every string before slicing? (Being Rust-ignorant), can you not type a binary as UTF-8? Are there 2 versions of string functions, fast ones that assume ASCII and slow ones that assume UTF-8? |
|
String always assumes full UTF-8. You could make an AsciiString type if you wanted, but it's not provided by the standard library.