pub(crate) struct U32SetBuilder<'a> {
pub(crate) set: &'a mut U32Set,
last_page_index: usize,
last_major_value: u32,
}
Expand description
This helper is used to construct U32Set
’s from a stream of possibly sorted values.
It remembers the last page index to reduce the amount of page lookups needed when inserting
sorted data. If given unsorted values it will still work correctly, but may be slower then just
repeatedly calling insert()
on the bitset.
Fields§
§set: &'a mut U32Set
§last_page_index: usize
§last_major_value: u32
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for U32SetBuilder<'a>
impl<'a> RefUnwindSafe for U32SetBuilder<'a>
impl<'a> Send for U32SetBuilder<'a>
impl<'a> Sync for U32SetBuilder<'a>
impl<'a> Unpin for U32SetBuilder<'a>
impl<'a> !UnwindSafe for U32SetBuilder<'a>
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