Closed as not planned
Description
Possibly also implement Borrow
and Deref
.
I would like to use Arc<PathBuf>
to be the equivalent of PathBuf
for traits in my library, path_abs
.
However, I get errors like this:
751 | impl PathMut for Arc<PathBuf> {
| ^^^^^^^ the trait `std::convert::AsRef<std::path::Path>` is not implemented for `alloc::sync::Arc<std::path::PathBuf>`
|
= help: the following implementations were found:
<alloc::sync::Arc<T> as std::convert::AsRef<T>>
= note: required because of the requirements on the impl of `PathInfo` for `alloc::sync::Arc<std::path::PathBuf>`