Function to_toml_file

Source
pub fn to_toml_file<T, P>(value: &T, path: P) -> Result<()>
where T: ?Sized + Serialize, P: AsRef<Path>,
Expand description

Converts the value to a TOML string and writes it to the speficied file.