Function extract_variables
Function extract_variables
Function extract_variables
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
pub fn extract_variables(
content: &str,
span_id: &SpanId,
patterns: &[VariablePattern],
) -> Option<ExtractionResult>
Extract variables from one content string.
Matching patterns are applied greedily by start position, preferring longer matches when multiple patterns overlap.
content: Block content to analyze.span_id: Span identifier associated with the content.patterns: Variable patterns to evaluate.Some(ExtractionResult) when at least one variable is found and None otherwise.