Create a new replacement.
(old: usize, old_len: usize, new: usize, new_len: usize)
| 309 | impl Replacement { |
| 310 | /// Create a new replacement. |
| 311 | pub fn new(old: usize, old_len: usize, new: usize, new_len: usize) -> Self { |
| 312 | Self { |
| 313 | old, |
| 314 | old_len, |
| 315 | new, |
| 316 | new_len, |
| 317 | } |
| 318 | } |
| 319 | |
| 320 | /// Create a pure insertion (no deletion). |
| 321 | pub fn insertion(old_pos: usize, new_pos: usize, len: usize) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected