Trait assert_fs::TempDirChildExt [−][src]
Access paths within TempDir
for testing.
Required Methods
fn child<P>(&self, path: P) -> ChildPath where
P: AsRef<Path>,
P: AsRef<Path>,
Create a path within the temp directory.
Examples
use assert_fs::prelude::*; let temp = assert_fs::TempDir::new().unwrap(); println!("{:?}", temp.path()); println!("{:?}", temp.child("foo/bar.txt").path()); temp.close().unwrap();
Implementors
impl TempDirChildExt for TempDir