Skip to main content

matches_start

Function matches_start 

Source
pub fn matches_start<T: Debug + Clone + PartialEq>(
    items: &[Item<T>],
    pat: &[Item<T>],
) -> Option<Match<T>>
Expand description

Find a match align with the start of items. Similar to Python re.match.