pub fn to_file<P: AsRef<Path>>(data: &Data, path: P) -> Result<()>Expand description
Attempts to serialize a Data struct to a file
When opening the file, this will set the .write(true) and
.truncate(true) options, use the next method for more
fine-grained control