pub fn encode(ops: &[DomOp]) -> Vec<u8> ⓘ
Encode ops as a patch stream.
ops
Deterministic: the same operations always produce the same bytes, so a byte comparison over the stream is a real assertion rather than a coin flip.