pub fn set_preserving(
content: &str,
path: &str,
value: &Value,
) -> DocumentResult<String>Expand description
Replace one scalar in a YAML source document while retaining all unrelated source bytes. Escaped keys, keyed-list routes, and collection replacement are deliberately rejected until they have a lossless CST path adapter.