pub trait TempFile: Debug {
// Required method
fn path(&self) -> &Path;
}Expand description
A type used to represent a temporary file. The assumption is that the implementer may want to
make the type Drop so that the temporary file is cleaned up if it isn’t consumed.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".