pub fn expand_tilde<P: AsRef<Path> + ?Sized>(path: &P) -> Result<Cow<'_, Path>>Expand description
Expands the tilde (~) component to the home directory.
This function is similar to expand_tilde_path, except it is generic over the path type.
ยงErrors
See expand_tilde_path for more information.