The standard type in Rust for dealing with filesystem paths is &Path, or PathBuf for a fully-owned version. In order to interface with rust_strings, users need to convert their &Path to a String, which is a lossy operation since the Path need not be UTF-8 (though it often is).
The standard type in Rust for dealing with filesystem paths is
&Path
, orPathBuf
for a fully-owned version. In order to interface withrust_strings
, users need to convert their&Path
to aString
, which is a lossy operation since the Path need not be UTF-8 (though it often is).CC @robertbastian