Skip to main content

patch

Function patch 

Source
pub fn patch<S>(
    source: &str,
    diff: &[Change],
    resolved_spans: &[S],
) -> Result<PatchedSchema, Error>
where S: AsRef<str>,
Expand description

Apply a diff to a source schema. The spans in the diff from the original target schema must have been resolved by [resolve_spans()] and not sorted.