Skip to main content
← rust.krizaka.comkrizaka.com

save

Function save 

Source
pub fn save<T: Serialize>(file: &Path, value: &T) -> Result<(), SettingsError>
Expand description

Writes value as pretty JSON, atomically (temporary file, fsync, rename), creating the folder if needed.