Skip to main content

edit

Function edit 

Source
pub fn edit(input: &[u8], opts: &Options, op: &Op) -> Result<Vec<u8>, Diag>
Expand description

Apply one edit and re-encode every enclosing layer in its original style. The output is decoded again with the same options and checked; the result is returned only if it holds exactly the requested change.