[][src]Struct temp_testdir::TempDir

pub struct TempDir { /* fields omitted */ }

Create a dir that will be removed.

Methods

impl TempDir[src]

pub fn permanent(self) -> Self[src]

Prevent dir delete

pub fn new<P: AsRef<Path>>(path: P, destroy: bool) -> Self[src]

New Temp dir.

Trait Implementations

impl Drop for TempDir[src]

impl Default for TempDir[src]

impl AsRef<Path> for TempDir[src]

impl Deref for TempDir[src]

type Target = Path

The resulting type after dereferencing.

Auto Trait Implementations

impl Send for TempDir

impl Unpin for TempDir

impl Sync for TempDir

impl UnwindSafe for TempDir

impl RefUnwindSafe for TempDir

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]