Y
Hacker News
new
|
ask
|
show
|
jobs
by
wtetzner
1351 days ago
I think the point is that you run the unicode validation
once
on your [u8] array, which gives you a &str (or String for the lossy variants). From then on, you know you have valid unicode and don't need to keep checking.