2 ms·
Actually, Rust has four string types: str/String, CStr/CString, OsStr/OsString, and Path/PathBuf.
by cesarb 9y ago
Actually, Rust has four string types: str/String, CStr/CString, OsStr/OsString, and Path/PathBuf.
- steveklabnik 9y agoOnly str is in the language. The others are standard library types. Libraries may introduce more types too. We almost made str a library type but the downsides outweighed the upsides.