pub struct U128COSetBuilder { /* private fields */ }Expand description
Concurrent write-side builder for U128COSet.
Insertions are expected O(log n) through crossbeam_skiplist.
No merging is performed during insertion; normalization happens once
in seal.
Implementations§
Source§impl U128COSetBuilder
impl U128COSetBuilder
Sourcepub fn insert(&self, iv: U128CO)
pub fn insert(&self, iv: U128CO)
Inserts one interval into the builder.
This method is safe to call concurrently through shared references.
Identical intervals are deduplicated by the underlying SkipSet.
Sourcepub fn seal(self) -> U128COSet
pub fn seal(self) -> U128COSet
Consumes the builder and returns a canonical immutable set.
The merge process is linear over the sorted skip-list iterator:
- maintain one pending interval
cur; - if the next interval overlaps or is adjacent, replace
curwith its convex hull; - otherwise, push
curand start a new pending interval; - finally, push the last pending interval.
Trait Implementations§
Source§impl Debug for U128COSetBuilder
impl Debug for U128COSetBuilder
Source§impl Default for U128COSetBuilder
impl Default for U128COSetBuilder
Source§fn default() -> U128COSetBuilder
fn default() -> U128COSetBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for U128COSetBuilder
impl !RefUnwindSafe for U128COSetBuilder
impl Send for U128COSetBuilder
impl Sync for U128COSetBuilder
impl Unpin for U128COSetBuilder
impl UnsafeUnpin for U128COSetBuilder
impl !UnwindSafe for U128COSetBuilder
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