Skip to main content

parse_record_fields

Function parse_record_fields 

Source
pub fn parse_record_fields(
    text: &str,
    columns: usize,
    field: impl FnMut(usize, Option<String>) -> Result<()>,
) -> Result<()>
Expand description

Split text into columns fields as record_in does, handing each field to field as soon as it is read: None is a NULL field. Leading and trailing whitespace around the parentheses is allowed; whitespace inside an unquoted field belongs to the field.