pub fn patch<S>(
source: &str,
diff: &[Change],
resolved_spans: &[S],
) -> Result<PatchedSchema, Error>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.