[−][src]Struct test_dir::TestDir
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,