fn write_file<T, P, B>(fs: &T, path: P, buf: B) -> io::Result<()>
where
    T: FileSystem,
    P: AsRef<Path>,
    B: AsRef<[u8]>
{
    let mut writer = fs.create(path)?;
    writer.write_all(buf.as_ref())
}
// Used to be part of the public API.
// Keep around for the tests.
Used to be part of the public API.
Keep around for the tests.
Used to be part of the public API . Keep around for the tests .
fn write_file<T, P, B>(fs: &T, path: P, buf: B) -> io::Result<()>
where
    T: FileSystem,
    P: AsRef<Path>,
    B: AsRef<[u8]>
{
    let mut writer = fs.create(path)?;
    writer.write_all(buf.as_ref())
}
fn write_file < T , P , B > ( fs : & T , path : P , buf : B ) -> io :: Result < ( ) > where T : FileSystem , P : AsRef < Path > , B : AsRef < [ u8 ] > { let mut writer = fs . create ( path ) ? ; writer . write_all ( buf . as_ref ( ) ) }
Used to be part of the public API.
Used to be part of the public API .
fs
&T
path
P
buf
B