struct StreamHeap<'f> {
rdrs: Vec<Box<dyn for<'a> Streamer<'a, Item = (&'a [u8], Output)> + 'f>>,
heap: BinaryHeap<Slot>,
}
Fields§
§rdrs: Vec<Box<dyn for<'a> Streamer<'a, Item = (&'a [u8], Output)> + 'f>>
§heap: BinaryHeap<Slot>
Implementations§
Source§impl<'f> StreamHeap<'f>
impl<'f> StreamHeap<'f>
fn new( streams: Vec<Box<dyn for<'a> Streamer<'a, Item = (&'a [u8], Output)> + 'f>>, ) -> StreamHeap<'f>
fn pop(&mut self) -> Option<Slot>
fn peek_is_duplicate(&self, key: &[u8]) -> bool
fn pop_if_equal(&mut self, key: &[u8]) -> Option<Slot>
fn pop_if_le(&mut self, key: &[u8]) -> Option<Slot>
fn num_slots(&self) -> usize
fn refill(&mut self, slot: Slot)
Auto Trait Implementations§
impl<'f> Freeze for StreamHeap<'f>
impl<'f> !RefUnwindSafe for StreamHeap<'f>
impl<'f> !Send for StreamHeap<'f>
impl<'f> !Sync for StreamHeap<'f>
impl<'f> Unpin for StreamHeap<'f>
impl<'f> !UnwindSafe for StreamHeap<'f>
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