Skip to main content

covers_whole_segments

Function covers_whole_segments 

Source
fn covers_whole_segments(segments: &[&str], pat: &str) -> bool
Expand description

Whether pat occupies a whole run of segments.

pat is split the same way, so a two-word pattern like fetch_webpage has to match two consecutive segments rather than appearing inside one.