pub struct TempFile { /* private fields */ }Expand description
A temporary file
This is a wrapper around tempfile::NamedTempFile. The file will normally be cleaned
up when the object is dropped.
Note: this function may create an empty file when the object is created. If you are checking
that the path does not exist, you should use TempStdPath instead.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TempFile
impl RefUnwindSafe for TempFile
impl Send for TempFile
impl Sync for TempFile
impl Unpin for TempFile
impl UnsafeUnpin for TempFile
impl UnwindSafe for TempFile
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more