pub fn wrap(path: &Path) -> TempFile {
        TempFile {
            path: Some(path.to_path_buf()),
            disarmed: false,
        }
    }
/// Wrap path to a temporary file. The file will be automatically
/// deleted once the returned wrapper is destroyed.
///
/// If no directory can be created, `Err` is returned.
Wrap path to a temporary file. The file will be automatically
deleted once the returned wrapper is destroyed.

If no directory can be created, `Err` is returned.
Wrap path to a temporary file . The file will be automatically deleted once the returned wrapper is destroyed . If no directory can be created ` Err ` is returned .
pub fn wrap(path: &Path) -> TempFile {
        TempFile {
            path: Some(path.to_path_buf()),
            disarmed: false,
        }
    }
pub fn wrap ( path : & Path ) -> TempFile { TempFile { path : Some ( path . to_path_buf ( ) ) , disarmed : false , } }
Wrap path to a temporary file.
Wrap path to a temporary file .
path
&Path
path
&Path