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 str/String to Path/PathBuf. Maybe I’m missing something?
Anyway, it seems to me that a general conversion between Cow<A> and Cow<B> would be a useful addition to standard library, assuming there’s proper conversion trait implementations from A to B and from A::Owned to B::Owned. Is this something that could be added?