pub fn temp() -> std::io::Result<Self> {
        let mut temp = std::env::temp_dir().to_path_buf();
        temp.push(TempDir::random_name());
        TempDir::create(temp.as_path())
    }
/// Try to create a temporary directory inside system tmp directory.
Try to create a temporary directory inside system tmp directory.
Try to create a temporary directory inside system tmp directory .
pub fn temp() -> std::io::Result<Self> {
        let mut temp = std::env::temp_dir().to_path_buf();
        temp.push(TempDir::random_name());
        TempDir::create(temp.as_path())
    }
pub fn temp ( ) -> std :: io :: Result < Self > { let mut temp = std :: env :: temp_dir ( ) . to_path_buf ( ) ; temp . push ( TempDir :: random_name ( ) ) ; TempDir :: create ( temp . as_path ( ) ) }
Try to create a temporary directory inside system tmp directory.
Try to create a temporary directory inside system tmp directory .