Skip to main content

apply_chunk

Function apply_chunk 

Source
pub fn apply_chunk(current: &str, chunk: &OutputChunk) -> String
Expand description

Pure model of applying one chunk to the current buffer text.

The live drain produces the equivalent Edits against the actor handle; this function is the host-free unit-test seam for the chunk semantics (Reset replaces everything; Append / Finished concatenate at the end).