cosmic::iced_winit::graphics::damage

Function diff

source
pub fn diff<T>(
    previous: &[T],
    current: &[T],
    bounds: impl Fn(&T) -> Vec<Rectangle>,
    diff: impl Fn(&T, &T) -> Vec<Rectangle>,
) -> Vec<Rectangle>
Expand description

Diffs the damage regions given some previous and current primitives.