[][src]Struct test_dir::TestDir

pub struct TestDir { /* fields omitted */ }

Test directory creator

Methods

impl TestDir[src]

pub fn temp() -> Self[src]

Creates if possible a temporary directory

pub fn current_rnd() -> Self[src]

Creates if possible a temporary directory with random name inside the current directory

pub fn current(path: &str) -> Self[src]

Creates if possible a temporary directory specified in path relative to the current directory

pub fn get_files<'a>(&self) -> &Vec<PathBuf>[src]

Returns all files created with DirBuilder

pub fn get_dirs<'a>(&self) -> &Vec<PathBuf>[src]

Returns all directories created with DirBuilder

Trait Implementations

impl DirBuilder for TestDir[src]

fn create(self, path: &str, filetype: FileType) -> Self[src]

Create a file or directory under the path

fn remove(self, path: &str) -> Self[src]

Remove a file or directory under the path

fn path(&self, path: &str) -> PathBuf[src]

Prefix path with the current context of the DirBuilder

fn root(&self) -> &Path[src]

Return the root path to the temporary directory

Auto Trait Implementations

impl Send for TestDir

impl Sync for TestDir

impl Unpin for TestDir

impl UnwindSafe for TestDir

impl RefUnwindSafe for TestDir

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,