Trait assert_fs::fixture::FileWriteBin[][src]

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

Write a binary file at ChildPath.

Required methods

fn write_binary(&self, data: &[u8]) -> Result<(), FixtureError>[src]

Write a binary file at ChildPath.

Examples

use assert_fs::prelude::*;

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

Implementors

Loading content...