Skip to main content

apply

Function apply 

Source
pub fn apply(
    text: &str,
    op: &Op,
    matcher: &Matcher,
    line_range: Option<LineRange>,
    context_lines: usize,
) -> Result<EngineOutput, RipsedError>
Expand description

Apply a single operation to a text buffer.

Returns the modified text and a structured diff. If dry_run is true, the text is computed but flagged as preview-only.