Skip to main content

contains_line_block

Function contains_line_block 

Source
pub fn contains_line_block(container: &str, candidate: &str) -> bool
Expand description

True when candidate occurs in container as a contiguous line block.

Short-circuits on the first match: unlike collecting ranges and testing emptiness, this builds no ranges vector and stops scanning early. An empty candidate matches nothing.