pub fn ron_from_path_recoverable<T: Default + for<'a> Deserialize<'a>>(
path: &Path,
) -> TExpand description
Load settings from ron in a recoverable manner. Requires
#[serde(default)].
Lines with parse errors are deleted and parsing is attempted again; this is
repeated until either parsing succeeds or the string is empty.
If there was a parse error, the original file gets renamed to have the
extension invalid.ron. Otherwise the disk is not written to.