[][src]Trait test_dir::DirBuilder

pub trait DirBuilder {
    fn create(self, path: &str, filetype: FileType) -> Self;
fn remove(self, path: &str) -> Self;
fn path(&self, path: &str) -> PathBuf;
fn root(&self) -> &Path; }

File structure builder trait

Required methods

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

Create a file or directory under the path

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

Remove a file or directory under the path

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

Prefix path with the current context of the DirBuilder

fn root(&self) -> &Path

Return the root path to the temporary directory

Loading content...

Implementors

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

Loading content...