Skip to main content

without_contained

Function without_contained 

pub fn without_contained(rects: Vec<FineDamageRect>) -> Vec<FineDamageRect>
Expand description

rects without the ones another contains, in their original order; of equal ones the first stays.

A rectangle can only be contained by one at least as large, so taking them largest first means each is checked against the survivors alone and none is ever removed again.