Skip to main content

find_matching_ref

Function find_matching_ref 

Source
pub fn find_matching_ref<'a>(
    command: &str,
    patterns: &[&'a Pattern],
) -> Option<&'a Pattern>
Expand description

Like find_matching but works with a slice of references.

Useful when you have a slice of pattern references rather than values.