[−][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]
impl ChildPath
pub fn new<P>(path: P) -> Self where | [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 PathAssert for ChildPath
impl PathCreateDir for ChildPath
[src]
impl PathCreateDir for ChildPath
fn create_dir_all(&self) -> Result<(), FixtureError> | [src] |
impl FileTouch for ChildPath
[src]
impl FileTouch for ChildPath
fn touch(&self) -> Result<(), FixtureError> | [src] |
impl FileWriteBin for ChildPath
[src]
impl FileWriteBin for ChildPath
fn write_binary(&self, data: &[u8]) -> Result<(), FixtureError> | [src] |
impl FileWriteStr for ChildPath
[src]
impl FileWriteStr for ChildPath
impl FileWriteFile for ChildPath
[src]
impl FileWriteFile for ChildPath
fn write_file(&self, data: &Path) -> Result<(), FixtureError> | [src] |
impl PathCopy for ChildPath
[src]
impl PathCopy for ChildPath
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |