4 ms·
Rust has six, plus the Path types: http://www.suspectsemantics.com/blog/2016/03/27/string-types-in-rust/ http://www.suspectsemantics.com/blog/2016/03/27/string
by twic 10y ago
Rust has six, plus the Path types:
http://www.suspectsemantics.com/blog/2016/03/27/string-types-in-rust/ http://www.suspectsemantics.com/blog/2016/03/27/string-types...
I would say it's actually justified in that.
- kibwen 10y agoThose aren't string types, they're buffers for platform-dependent system interoperation. When used, the goal is to convert them to String as soon as possible. If one considers those to be string types, then Vec<u8>, Vec<16>, and Vec<32> would be considered string types as well (in addition to both fixed-size arrays and unsafe pointers to the same).