Trait PlainPathExt

Source
pub trait PlainPathExt {
    // Required method
    fn plain(&self) -> Result<Cow<'_, Path>, HomeDirNotFound>;
}
Expand description

Provides the plain method to expand ~.

Required Methods§

Source

fn plain(&self) -> Result<Cow<'_, Path>, HomeDirNotFound>

Returns the path without special expansion characters.

If there are no expansion characters, the original path is returned under the Cow::Borrowed variant, otherwise an owned PathBuf is returned.

Implementations on Foreign Types§

Source§

impl PlainPathExt for Path

Source§

impl PlainPathExt for PathBuf

Implementors§