pub fn home_dir_with_env(env: &dyn Env) -> Option<PathBuf>
Returns the path of the current user’s home directory from Env::home_dir.
Env::home_dir