4 ms·
Rust strings are UTF-8, and UTF-8 characters vary in byte length, therefore replacing same length character sequences don't guarantee that they will fit in the
by tupshin 6y ago
Rust strings are UTF-8, and UTF-8 characters vary in byte length, therefore replacing same length character sequences don't guarantee that they will fit in the same number of bytes.