pub fn write_file(path: &Path, contents: &str) -> std::io::Result<()> {
    let mut file = File::create(path)?;
    file.write_all(contents.as_bytes())?;
    Ok(())
}
/// Write an entire string to a file.
Write an entire string to a file.
Write an entire string to a file .
pub fn write_file(path: &Path, contents: &str) -> std::io::Result<()> {
    let mut file = File::create(path)?;
    file.write_all(contents.as_bytes())?;
    Ok(())
}
pub fn write_file ( path : & Path , contents : & str ) -> std :: io :: Result < ( ) > { let mut file = File :: create ( path ) ? ; file . write_all ( contents . as_bytes ( ) ) ? ; Ok ( ( ) ) }
Write an entire string to a file.
Write an entire string to a file .
path
&Path
contents
&str
path
&Path
contents
&str