3 ms·
Thank you. Bytes will do just fine. I'm glad Rust is pedantic about bytes vs. chars.
by rogual 11y ago
Thank you. Bytes will do just fine. I'm glad Rust is pedantic about bytes vs. chars.
- steveklabnik 11y agoTo elaborate slightly further, char in Rust is four bytes, as it represents a Unicode Scalar Value. So the chars iterator isn't yet stable because it's not clear what should be done in the case of a read of a partial char. This is, of course, fixable, there's just a lot to do, and that's the question for this specific API.