chunk_diff/encoder/config.rs
1use crate::util::rect::Rect;
2
3pub struct Config {
4 /// Rect of the chunk to be hashed and compared.
5 rect: Rect,
6 /// Full rect of the data.
7 full: Rect,
8}
9
10impl Config {
11 pub fn new(rect: Rect, full: Rect) -> Self {
12 Self { rect, full }
13 }
14
15 pub fn rect(&self) -> &Rect {
16 &self.rect
17 }
18
19 pub fn full(&self) -> &Rect {
20 &self.full
21 }
22}