[][src]Struct assert_fs::fixture::ChildPath

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]

pub fn new<P>(path: P) -> Self where
    P: Into<PathBuf>, 
[src]

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 PathCreateDir for ChildPath
[src]

impl FileTouch for ChildPath
[src]

impl FileWriteBin for ChildPath
[src]

impl FileWriteStr for ChildPath
[src]

impl FileWriteFile for ChildPath
[src]

impl PathCopy for ChildPath
[src]

Auto Trait Implementations

impl Send for ChildPath

impl Sync for ChildPath

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]