chunk-diff 0.2.0

A fast and memory-efficient library for computing the difference between two frames of rect.
Documentation
use crate::util::rect::Rect;

pub struct Config {
    /// Rect of the chunk to be hashed and compared.
    rect: Rect,
    /// Full rect of the data.
    full: Rect,
}

impl Config {
    pub fn new(rect: Rect, full: Rect) -> Self {
        Self { rect, full }
    }

    pub fn rect(&self) -> &Rect {
        &self.rect
    }

    pub fn full(&self) -> &Rect {
        &self.full
    }
}