debug_scan

Function debug_scan 

Source
pub fn debug_scan<E: Event>(
    event: &mut E,
    rule: RootRuleConfig<Arc<dyn RuleConfig>>,
) -> Result<Vec<DebugRuleMatch>, DebugScanError>
Expand description

Similar to `.scan(), except more information is given for matches (such as the keyword), and partial matches are also returned with a reason it wasn’t a full match.

A partial match lists every condition that rejected it, not only the first one. The output is sorted by path, then by start index.

This function should be considered experimental, and is not intended for use where performance is critical.