Function tux::temp_dir

source · []
pub fn temp_dir() -> TempDir
Expand description

Generates a temporary directory that can be used by tests. Returns a TempDir value that provides access to the created directory.

The directory and its contents will be deleted once the value is dropped.

Errors

This will panic if the directory creation fails.