pub struct TileDiffConfig {
pub enabled: bool,
pub tile_w: u16,
pub tile_h: u16,
pub min_cells_for_tiles: usize,
pub dense_cell_ratio: f64,
pub dense_tile_ratio: f64,
pub max_tiles: usize,
}Expand description
Configuration for tile-based diff skipping.
Fields§
§enabled: boolWhether tile-based skipping is enabled.
tile_w: u16Tile width in cells (clamped to [8, 64]).
tile_h: u16Tile height in cells (clamped to [8, 64]).
min_cells_for_tiles: usizeMinimum total cells required before enabling tiles.
dense_cell_ratio: f64Dense cell ratio threshold for falling back to non-tile diff.
dense_tile_ratio: f64Dense tile ratio threshold for falling back to non-tile diff.
max_tiles: usizeMaximum number of tiles allowed (SAT build budget; fallback if exceeded).
Implementations§
Source§impl TileDiffConfig
impl TileDiffConfig
Sourcepub fn with_enabled(self, enabled: bool) -> Self
pub fn with_enabled(self, enabled: bool) -> Self
Toggle tile-based skipping.
Sourcepub fn with_tile_size(self, tile_w: u16, tile_h: u16) -> Self
pub fn with_tile_size(self, tile_w: u16, tile_h: u16) -> Self
Set tile size in cells (clamped during build).
Sourcepub fn with_min_cells_for_tiles(self, min_cells: usize) -> Self
pub fn with_min_cells_for_tiles(self, min_cells: usize) -> Self
Set minimum cell count required before tiles are considered.
Sourcepub fn with_dense_cell_ratio(self, ratio: f64) -> Self
pub fn with_dense_cell_ratio(self, ratio: f64) -> Self
Set dense cell ratio threshold for falling back to non-tile diff.
Sourcepub fn with_dense_tile_ratio(self, ratio: f64) -> Self
pub fn with_dense_tile_ratio(self, ratio: f64) -> Self
Set dense tile ratio threshold for falling back to non-tile diff.
Sourcepub fn with_max_tiles(self, max_tiles: usize) -> Self
pub fn with_max_tiles(self, max_tiles: usize) -> Self
Set SAT build budget via maximum tiles allowed.
Trait Implementations§
Source§impl Clone for TileDiffConfig
impl Clone for TileDiffConfig
Source§fn clone(&self) -> TileDiffConfig
fn clone(&self) -> TileDiffConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TileDiffConfig
impl Debug for TileDiffConfig
Auto Trait Implementations§
impl Freeze for TileDiffConfig
impl RefUnwindSafe for TileDiffConfig
impl Send for TileDiffConfig
impl Sync for TileDiffConfig
impl Unpin for TileDiffConfig
impl UnwindSafe for TileDiffConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more