Skip to main content

moved_marks

Function moved_marks 

Source
pub fn moved_marks(
    reads: &[FileRead],
    done: &dyn Fn(&str, &str) -> bool,
    marks: &BTreeMap<String, ReadMark>,
) -> BTreeMap<String, ReadMark>
Expand description

The marks moved past every line done with, in each file’s order: a line that does not open or is another writer’s, or whose request is done with (done, by its key and phone: decided, or another phone’s); the first line not done with stops its file’s mark. Only the files read now keep one.