expand_tilde

Trait ExpandTilde

Source
pub trait ExpandTilde: Sealed {
    // Required method
    fn expand_tilde(&self) -> Result<Cow<'_, Path>>;
}
Expand description

Represents values that can be tilde-expanded (sealed extension trait).

Required Methods§

Source

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

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

§Errors

See expand_tilde for more information.

Implementors§