pub fn home_dir() -> String {
        match dirs::home_dir() {
            Some(dir) => path_to_string(dir),
            None => "/".to_string()
        }
    }
/// This function returns the users home directory. This is used by most functions
/// in this impl to determine where everything should be installed.
This function returns the users home directory. This is used by most functions
in this impl to determine where everything should be installed.
This function returns the users home directory . This is used by most functions in this impl to determine where everything should be installed .
pub fn home_dir() -> String {
        match dirs::home_dir() {
            Some(dir) => path_to_string(dir),
            None => "/".to_string()
        }
    }
pub fn home_dir ( ) -> String { match dirs :: home_dir ( ) { Some ( dir ) => path_to_string ( dir ) , None => " " . to_string ( ) } }
This function returns the users home directory.
This function returns the users home directory .