// 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 create_file<T, P, B>(fs: &T, path: P, buf: B) -> io::Result<()>
where
    T: FileSystem,
    P: AsRef<Path>,
    B: AsRef<[u8]>,
{
    let opts = OpenOptions::new().write(true).create_new(true);
    let mut writer = fs.open_with_options(path, &opts)?;
    writer.write_all(buf.as_ref())
}
fn create_file < T , P , B > ( fs : & T , path : P , buf : B ) -> io :: Result < ( ) > where T : FileSystem , P : AsRef < Path > , B : AsRef < [ u8 ] > , { let opts = OpenOptions :: new ( ) . write ( true ) . create_new ( true ) ; let mut writer = fs . open_with_options ( path , & opts ) ? ; writer . write_all ( buf . as_ref ( ) ) }
Used to be part of the public API.
Used to be part of the public API .
fs
&T
<not_specific>
path
P
<not_specific>
buf
B
<not_specific>