pub struct ChildPath { /* fields omitted */ }
A path within a TempDir
See Trait Implementations.
use assert_fs::prelude::*;
let temp = assert_fs::TempDir::new().unwrap();
let input_file = temp.child("foo.txt");
input_file.touch().unwrap();
temp.child("bar.txt").touch().unwrap();
temp.close().unwrap();
Wrap a path for use with extension traits.
See trait implementations or PathChild
for more details.
Assert the state of files within [TempDir
]. Read more
Access a path within the temp directory. Read more
Create an empty file at [ChildPath
]. Read more
Create an empty file at [ChildPath
]. Read more
Write a binary file at [ChildPath
]. Read more
Write (copy) a file to [ChildPath
]. Read more
Copy files and directories into the current path from the source
according to the glob patterns
. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static