Crate expand_tilde

source
Expand description

Expanding tildes in paths.

§Example

use expand_tilde::{ExpandTilde, expand_tilde};

let path = "~/.config";

let direct = expand_tilde(path).unwrap();

let extended = path.expand_tilde().unwrap();

assert_eq!(direct, extended);

Structs§

  • Represents errors that can occur during ~ expansion.

Constants§

Traits§

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

Functions§

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

Type Aliases§

  • The result type used by this crate.