fn line_length_while(s: &str, cont: impl FnMut(char) -> bool) -> usize