Function string_parser_with_file

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

Like string_parser_with_line but the callback function also take the file path as arguments