MCPcopy Create free account
hub / github.com/Pometry/Raphtory / parse_node_label

Function parse_node_label

raphtory-cypher/src/parser/mod.rs:672–680  ·  view source on GitHub ↗
(pair: Pair<'_, Rule>)

Source from the content-addressed store, hash-verified

670}
671
672fn parse_node_label(pair: Pair<'_, Rule>) -> Option<String> {
673 match pair.as_rule() {
674 Rule::NodeLabel => {
675 let mut pairs = pair.into_inner();
676 pairs.next().map(|pair| pair.as_str().to_string())
677 }
678 _ => None,
679 }
680}
681
682fn parse_map_literal(
683 pair: Pair<'_, Rule>,

Callers 1

parse_node_patternFunction · 0.85

Calls 5

to_stringMethod · 0.80
into_innerMethod · 0.45
mapMethod · 0.45
nextMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected