Trait assert_fs::ChildPathWriteBinExt [] [src]

pub trait ChildPathWriteBinExt {
    fn write_binary(&self, data: &[u8]) -> Result<()>;
}

Extend ChildPath to write binary files.

Required Methods

Write a binary file at ChildPath.

Examples

This example is not tested
extern crate assert_cli;
use assert_cli::temp::*;

let temp = TempDir::new("TempDirChildExt_demo").unwrap();
temp.child("foo.txt").write_binary(b"To be or not to be...").unwrap();
temp.close().unwrap();

Implementors