pub fn list<T>( previous: &[T], current: &[T], bounds: impl Fn(&T) -> Vec<Rectangle>, are_equal: impl Fn(&T, &T) -> bool, ) -> Vec<Rectangle>
Computes the damage regions given some previous and current primitives.