pub enum DiffSkipHint {
FullDiff,
SkipDiff,
NarrowToRows(Vec<u16>),
}Expand description
Hint from a render certificate evaluator about what diff work can be skipped.
The runtime evaluates a certificate (e.g., from render_certificate::CertificateEvaluator)
and translates the result into a DiffSkipHint that BufferDiff::compute_certified_into
can act on.
§Safety contract
The hint must be correct: SkipDiff must only be issued when the caller
can guarantee that old and new buffers are byte-identical. NarrowToRows
must include all rows that actually changed. Incorrect hints produce stale
frames — the diff engine trusts the hint without verification.
Variants§
FullDiff
No skip — perform standard dirty-diff computation.
SkipDiff
Skip diff entirely — buffers are guaranteed identical.
NarrowToRows(Vec<u16>)
Only diff the specified rows — all other rows are guaranteed clean.
Implementations§
Source§impl DiffSkipHint
impl DiffSkipHint
Trait Implementations§
Source§impl Clone for DiffSkipHint
impl Clone for DiffSkipHint
Source§fn clone(&self) -> DiffSkipHint
fn clone(&self) -> DiffSkipHint
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 DiffSkipHint
impl Debug for DiffSkipHint
Source§impl PartialEq for DiffSkipHint
impl PartialEq for DiffSkipHint
impl Eq for DiffSkipHint
impl StructuralPartialEq for DiffSkipHint
Auto Trait Implementations§
impl Freeze for DiffSkipHint
impl RefUnwindSafe for DiffSkipHint
impl Send for DiffSkipHint
impl Sync for DiffSkipHint
impl Unpin for DiffSkipHint
impl UnsafeUnpin for DiffSkipHint
impl UnwindSafe for DiffSkipHint
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