pub fn buf_writer(path: impl AsRef<Path>) -> Result<BufFile>Available on crate feature
fs only.Expand description
Make a buffered writer to the file
Note that using a writer only really makes a difference if the content is large (i.e. does not fit in memory)
If you know the writes will be in large chunks anyway, use unbuffered cu::fs::writer
Make sure to manually flush to capture errors while flushing