We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea8131d commit d87b039Copy full SHA for d87b039
src/libstd/path.rs
@@ -1540,6 +1540,14 @@ impl<'a> From<&'a PathBuf> for Cow<'a, Path> {
1540
}
1541
1542
1543
+#[stable(feature = "pathbuf_from_cow_path", since = "1.28.0")]
1544
+impl<'a> From<Cow<'a, Path>> for PathBuf {
1545
+ #[inline]
1546
+ fn from(p: Cow<'a, Path>) -> Self {
1547
+ p.into_owned()
1548
+ }
1549
+}
1550
+
1551
#[stable(feature = "shared_from_slice2", since = "1.24.0")]
1552
impl From<PathBuf> for Arc<Path> {
1553
#[inline]
0 commit comments