pub struct ChildPath { /* private fields */ }
Expand description
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.
Copy files and directories into the current path from the
source
according to the glob
patterns
.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.