expand_tilde

Trait ExpandTilde

source
pub trait ExpandTilde: Sealed {
    // Required method
    fn expand_tilde(&self) -> Result<PathBuf>;
}
Expand description

Represents paths that can be expanded (sealed extension trait).

Required Methods§

source

fn expand_tilde(&self) -> Result<PathBuf>

Expands the tilde (~) component to the home directory.

§Errors

Returns an error if the home directory cannot be found.

Implementors§