pub trait ToPath { // Required method fn to_path(&self) -> &Path; }
Returns a reference to itself as a [std::path::Path]. Usefull for different kind of strings (&str or String).
[std::path::Path]
&str
String