Skip to main content

multirange_parse

Function multirange_parse 

Source
pub fn multirange_parse<E: From<TypeError>>(
    text: &str,
    range: impl FnMut(&str) -> Result<(), E>,
) -> Result<(), E>
Expand description

multirange_in: a left brace, zero or more ranges with commas between them, and a right brace. White space can be before and after each part. The parse gives the text of each range that is not the key word empty to range when it finds the end of that range, so the error of a range comes before the errors of the text after it.

§Errors

22P02 “malformed multirange literal” with the detail of PostgreSQL, and the errors of range.