You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RBE doesn't mention PathBuf anywhere. A programmer at my work asked:
"Why PathBuf? Just why generally. I started out using it where I thought it made sense, now I just pass &str. Things like .extension() returning an OsStr mean I just use .ends_with() instead which sort of does the same thing (but not always)"
Steve suggested mentioning that between String is to str as PathBuf is to Path.
The text was updated successfully, but these errors were encountered:
RBE doesn't mention PathBuf anywhere. A programmer at my work asked:
"Why PathBuf? Just why generally. I started out using it where I thought it made sense, now I just pass &str. Things like .extension() returning an OsStr mean I just use .ends_with() instead which sort of does the same thing (but not always)"
Steve suggested mentioning that between
String
is tostr
asPathBuf
is toPath
.The text was updated successfully, but these errors were encountered: