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

Function parse_inference

src/cosql/inference/mod.rs:31–41  ·  view source on GitHub ↗
(input: &str)

Source from the content-addressed store, hash-verified

29}
30
31pub fn parse_inference(input: &str) -> IResult<&str, Inference> {
32 alt((
33 map(parse_entity_inference, Inference::EntityInference),
34 map(parse_extend_entity_inference, |i| {
35 Inference::ExtendEntityInference(i)
36 }),
37 map(parse_relationship_inference, |i| {
38 Inference::RelationshipInference(i)
39 }),
40 ))(input)
41}
42
43#[cfg(test)]
44mod tests {

Callers 1

test_inference_parserFunction · 0.85

Calls 2

Tested by 1

test_inference_parserFunction · 0.68