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

impl FileWriteBin for ChildPath[src]

impl FileWriteFile for ChildPath[src]

impl FileWriteStr for ChildPath[src]

impl PathAssert for ChildPath[src]

impl PathChild for ChildPath[src]

impl PathCopy for ChildPath[src]

impl PathCreateDir for ChildPath[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,