[−][src]Struct assert_fs::fixture::ChildPath
A path within a TempDir
See Trait Implementations.
Examples
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();
Methods
impl ChildPath
[src]
pub fn new<P>(path: P) -> Self where
P: Into<PathBuf>,
[src]
P: Into<PathBuf>,
Wrap a path for use with extension traits.
See trait implementations or PathChild
for more details.
pub fn path(&self) -> &Path
[src]
Access the path.
Trait Implementations
impl PathAssert for ChildPath
[src]
impl PathChild for ChildPath
[src]
impl PathCreateDir for ChildPath
[src]
fn create_dir_all(&self) -> Result<(), FixtureError>
[src]
impl FileTouch for ChildPath
[src]
fn touch(&self) -> Result<(), FixtureError>
[src]
impl FileWriteBin for ChildPath
[src]
fn write_binary(&self, data: &[u8]) -> Result<(), FixtureError>
[src]
impl FileWriteStr for ChildPath
[src]
impl FileWriteFile for ChildPath
[src]
fn write_file(&self, data: &Path) -> Result<(), FixtureError>
[src]
impl PathCopy for ChildPath
[src]
Auto Trait Implementations
impl Send for ChildPath
impl Sync for ChildPath
impl Unpin for ChildPath
impl UnwindSafe for ChildPath
impl RefUnwindSafe for ChildPath
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 = !
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>,