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. The current implementation is only able to return partial matches if there was a single issue.
This function should be considered experimental, and is not intended for use where performance is critical.