Skip to main content

save_unless

Function save_unless 

Source
pub fn save_unless(
    dry_run: bool,
    doc: &mut Document,
    path: &Path,
) -> Result<u64>
Expand description

Like save, but a dry run only measures: the document is serialised and nothing is written.