MCPcopy Create free account
hub / github.com/cosdata/cosdata / parse_extend_entity_inference

Function parse_extend_entity_inference

src/cosql/inference/extend_entity.rs:14–22  ·  view source on GitHub ↗
(input: &str)

Source from the content-addressed store, hash-verified

12}
13
14pub fn parse_extend_entity_inference(input: &str) -> IResult<&str, ExtendEntityInference> {
15 map(
16 tuple((ws(tag("extend")), ws(parse_variable), ws(parse_attributes0))),
17 |(_, variable, attributes)| ExtendEntityInference {
18 variable: variable.to_string(),
19 attributes,
20 },
21 )(input)
22}
23
24#[cfg(test)]
25mod tests {

Callers 1

Calls 1

wsFunction · 0.50

Tested by 1