It’s entirely too difficult to convert a
Cow<str> (in my case, obtained from
String::from_utf8_lossy into a
Cow<Path>, even though it’s very easy to go from
PathBuf. Maybe I’m missing something?
Anyway, it seems to me that a general conversion between
Cow<B> would be a useful addition to standard library, assuming there’s proper conversion trait implementations from
B and from
B::Owned. Is this something that could be added?