MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / parse_range

Function parse_range

src/repr/src/strconv.rs:1441–1453  ·  view source on GitHub ↗
(
    s: &'a str,
    gen_elem: impl FnMut(Cow<'a, str>) -> Result<V, E>,
)

Source from the content-addressed store, hash-verified

1439}
1440
1441pub fn parse_range<'a, V, E>(
1442 s: &'a str,
1443 gen_elem: impl FnMut(Cow<'a, str>) -> Result<V, E>,
1444) -> Result<Range<V>, ParseError>
1445where
1446 E: ToString,
1447{
1448 Ok(Range {
1449 inner: parse_range_inner(s, gen_elem).map_err(|details| {
1450 ParseError::invalid_input_syntax("range", s).with_details(details)
1451 })?,
1452 })
1453}
1454
1455fn parse_range_inner<'a, V, E>(
1456 s: &'a str,

Callers 4

evalMethod · 0.85
decode_textMethod · 0.85
decode_text_into_rowMethod · 0.85
evalMethod · 0.85

Calls 2

parse_range_innerFunction · 0.85
with_detailsMethod · 0.80

Tested by

no test coverage detected