pub fn plan(
buffer: &Buffer,
edit: &SelectionEdit,
) -> Result<Option<SelectionEditPlan>, Error>Expand description
Build atomic edit ops for a selection-aware edit.
Returns Ok(None) when the operation has no effect (e.g. backspace at
the document start with all carets at offset 0).
ยงErrors
Returns core errors when any selection position is outside the buffer, or argument validation fails (e.g. an out-of-range heading level).