Function scrubbed_for_keeping
pub fn scrubbed_for_keeping(
text: &str,
omitted: u64,
scrub: impl Fn(&str) -> String,
margin: usize,
) -> (String, u64)Expand description
What a keeper makes of the text it is given, before it cuts and folds it: scrubbed with
scrub, and, when omitted is not 0 (the text is the first part of a longer output), cut back
at its end by scrub_open_end with margin (the longest value scrub replaces). With the omitted to keep: what was left out, counted again
for what the cut back took (never 0 for a text that was cut).