Trait assert_fs::ChildPathWriteStrExt
[−]
[src]
pub trait ChildPathWriteStrExt { fn write_str(&self, data: &str) -> Result<()>; }
Extend ChildPath
to write text files.
Required Methods
fn write_str(&self, data: &str) -> Result<()>
Write a text 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_str("To be or not to be...").unwrap(); temp.close().unwrap();
Implementors
impl ChildPathWriteStrExt for ChildPath