Skip to main content

apply_fixes_to_content_detailed

Function apply_fixes_to_content_detailed 

Source
pub fn apply_fixes_to_content_detailed(
    content: &str,
    fixes: &[&Fix],
) -> FixApplyResult
Expand description

Apply fixes to content string, reporting skipped fixes.

All fixes (both line-based and offset-based) are normalized to offset-based, then applied in reverse order to avoid index shifts. Overlapping fixes are skipped. Fixes that cannot be applied (invalid offsets, or line-based fixes that fail normalization) are skipped and counted in FixApplyResult::skipped_invalid.