write_file

Function write_file 

Source
pub fn write_file<F: AsRef<Path> + ?Sized>(f: &F) -> Result<Box<dyn Write>>
Expand description

Writes content to a file or standard output if the path is “-”.