Skip to main content

encode

Function encode 

Source
pub fn encode(ops: &[DomOp]) -> Vec<u8> ⓘ
Expand description

Encode ops as a patch stream.

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.