Trait assert_fs::ChildPathWriteStrExt [−][src]
Write a text file at ChildPath
.
Required Methods
fn write_str(&self, data: &str) -> Result<()>
Write a text file at ChildPath
.
Examples
use assert_fs::prelude::*; let temp = assert_fs::TempDir::new().unwrap(); temp.child("foo.txt").write_str("To be or not to be...").unwrap(); temp.close().unwrap();
Implementors
impl ChildPathWriteStrExt for ChildPath