pub fn writer(path: impl AsRef<Path>) -> Writer ⓘExpand description
Create an object to write to a file.
The path argument specifies the path to the file to write to. It may be
either a Path, a string, or any other type that can be converted (using
AsRef) to a Path. If the file does not exist, it will be created.
Panics if the file cannot be opened or created.