pub fn take_complete_records(contents: &str, n: usize) -> Option<&str>Expand description
The prefix of contents holding exactly its first n complete records.
Returns None when fewer than n complete records are present, so a caller
can tell “the runs agree over n records” apart from “n records have not been
written yet”. Those two must never collapse into one answer.