substrate_data/forms/patch/mod.rs
1//! Editing text in place: [`patch`] changes a document to hold a
2//! new value and keeps everything that didn't change as it was — comments,
3//! key order, number spelling, layout. What changed is written by
4//! [`format()`], the way editors write a value.
5
6mod format;
7mod rewrite;
8#[cfg(test)]
9mod tests;
10
11pub use format::{format, same, to_json};
12pub use rewrite::patch;