Struct assert_fs::ChildPath[][src]

pub struct ChildPath { /* fields omitted */ }

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]

Wrap a path for use with special built extension traits.

See trait implementations or PathChild for more details.

Access the path.

Trait Implementations

impl PathAssert for ChildPath
[src]

Important traits for &'a mut R

Wrap with an interface for that provides assertions on the TempDir.

impl FileTouch for ChildPath
[src]

Create an empty file at [ChildPath]. Read more

impl FileWriteBin for ChildPath
[src]

Write a binary file at [ChildPath]. Read more

impl FileWriteStr for ChildPath
[src]

Write a text file at [ChildPath]. Read more

impl PathCopy for ChildPath
[src]

Copy files and directories into the current path from the source according to the glob patterns. Read more

Auto Trait Implementations

impl Send for ChildPath

impl Sync for ChildPath