Function string_parser_with_line

Source
pub fn string_parser_with_line(
    path: &str,
    text: &str,
    end_filter: impl Fn(Vec<char>) -> bool,
    callback: impl FnMut(String, usize),
) -> Result<(), Error>
Expand description

Like string_parser but the callback function also take the line number as arguments