Function typed_path::utils::utf8_temp_dir
source · pub fn utf8_temp_dir() -> Result<Utf8NativePathBuf>Expand description
Returns the path of a temporary directory as Utf8NativePathBuf.
§Errors
Returns an Err if unable to parse the path with the native encoding
or the path was not valid UTF8.
§Examples
fn main() -> std::io::Result<()> {
let path = typed_path::utils::utf8_temp_dir()?;
println!("The temporary directory path is {}", path);
Ok(())
}