Skip to main content

range_fully_covered

Function range_fully_covered 

pub fn range_fully_covered(
    spans: &[MarkSpan],
    range: &Range<usize>,
    mark: &Mark,
) -> bool
Expand description

True iff every byte in range (a non-empty sub-range of the line) is covered by at least one same-kind span. Used to decide whether a toggle should add or remove the mark.