pub struct DirtySpanConfig {
pub enabled: bool,
pub max_spans_per_row: usize,
pub merge_gap: u16,
pub guard_band: u16,
}Expand description
Configuration for dirty-span tracking.
Fields§
§enabled: boolEnable dirty-span tracking (used by diff).
max_spans_per_row: usizeMaximum spans per row before falling back to full-row scan.
merge_gap: u16Merge spans when the gap between them is at most this many cells.
guard_band: u16Expand spans by this many cells on each side.
Implementations§
Source§impl DirtySpanConfig
impl DirtySpanConfig
Sourcepub fn with_enabled(self, enabled: bool) -> Self
pub fn with_enabled(self, enabled: bool) -> Self
Toggle dirty-span tracking.
Sourcepub fn with_max_spans_per_row(self, max_spans: usize) -> Self
pub fn with_max_spans_per_row(self, max_spans: usize) -> Self
Set max spans per row before fallback.
Sourcepub fn with_merge_gap(self, merge_gap: u16) -> Self
pub fn with_merge_gap(self, merge_gap: u16) -> Self
Set merge gap threshold.
Sourcepub fn with_guard_band(self, guard_band: u16) -> Self
pub fn with_guard_band(self, guard_band: u16) -> Self
Set guard band expansion (cells).
Trait Implementations§
Source§impl Clone for DirtySpanConfig
impl Clone for DirtySpanConfig
Source§fn clone(&self) -> DirtySpanConfig
fn clone(&self) -> DirtySpanConfig
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 DirtySpanConfig
impl Debug for DirtySpanConfig
Source§impl Default for DirtySpanConfig
impl Default for DirtySpanConfig
Source§impl PartialEq for DirtySpanConfig
impl PartialEq for DirtySpanConfig
impl Copy for DirtySpanConfig
impl Eq for DirtySpanConfig
impl StructuralPartialEq for DirtySpanConfig
Auto Trait Implementations§
impl Freeze for DirtySpanConfig
impl RefUnwindSafe for DirtySpanConfig
impl Send for DirtySpanConfig
impl Sync for DirtySpanConfig
impl Unpin for DirtySpanConfig
impl UnwindSafe for DirtySpanConfig
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