pub fn redact_text(text: &str, marker: Marker) -> (String, u32)Expand description
One string, with every secret shape in it replaced in place.
The spans arrive sorted and non-overlapping from the detector, so a single left-to-right pass is enough and no offset needs adjusting after a replacement.