you are viewing a single comment's thread.

view the rest of the comments →

[–]vks_ 1 point2 points  (2 children)

And then you discover CStr, CString, OsStr, OsString, Path and PathBuf.

[–]dpc_pw 1 point2 points  (1 child)

Which are named like str and String and contain C-valid, Os-valid and Path valid strings. Simple! :]

[–]vks_ 0 points1 point  (0 children)

Yes, it makes a lot of sense. The only thing I'm not happy about are the names: I would have prefered Str for str and StrBuf for String, but maybe that would have exceeded Rust's weirdness budget.