Function extract_variables

View as Markdown

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.

Parameters

  • content: Block content to analyze.
  • span_id: Span identifier associated with the content.
  • patterns: Variable patterns to evaluate.

Returns

Some(ExtractionResult) when at least one variable is found and None otherwise.