pub trait Merge {
// Required method
fn merge_progress(&mut self, new: ProgressEntry);
}Expand description
Trait for merging a new ProgressEntry into a sorted list of existing entries.
Used to consolidate downloaded ranges and remove redundant gaps.
Required Methods§
Sourcefn merge_progress(&mut self, new: ProgressEntry)
fn merge_progress(&mut self, new: ProgressEntry)
Merge new into the existing (sorted) progress list, coalescing overlaps
so the list stays sorted and gap-free where ranges touch.
§Preconditions
The list must already be sorted by start and non-overlapping. This
holds automatically for lists built exclusively through this method; it is
checked by a debug_assert for hand-built lists.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".