pub fn tildify(path: &Path, home: Option<&Path>) -> String
Render path with the user’s home directory collapsed to ~/. Falls back to the full display() form when the path isn’t under home or when home is None.
path
~/
display()
home
None