pub trait AsPath {
// Required method
fn as_path(&self) -> Path<'_>;
}Expand description
A trait for types that can be converted to a Path.
When providing a String/str, any leading/trailing slashes are trimmed and multiple consecutive slashes are collapsed. When already a Path, normalization is skipped as a reference is returned.