pub trait PathLike: Sealed {
    // Required method
    fn to_string_lossy(&self) -> Cow<'_, str>;
}Expand description
A trait that abstracts over types accepted for conversion to the most featureful path representation possible; that is:
- When 
no_stdis active, this is implemented for:str,String,Cow<'_, str>, andPathLikeRef
 - Otherwise, types that implement 
AsRef<Path>(to extract a&Path). 
This type is used as the type bounds for various diagnostic rendering methods, i.e.,
WithSpan::emit_to_string_with_path.