Skip to main content

parse_row

Function parse_row 

Source
pub fn parse_row(
    input: ParseStream<'_>,
    types: &[ReprColumnType],
) -> Result<Row>
Expand description

Parses a comma-separated datum list into a Row, coercing each datum to the corresponding column type where the literal admits it.

Literals that do not match their column type (and datums beyond the column count) fall back to type inference from the literal alone. The parser deliberately does not reject such rows, ill-typed constants are valid parser output that tests feed to the typechecker.