Trait timely::container::PushPartitioned
source · pub trait PushPartitioned: Container {
// Required method
fn push_partitioned<I, F>(
&mut self,
buffers: &mut [Self],
index: I,
flush: F
)
where I: FnMut(&Self::Item) -> usize,
F: FnMut(usize, &mut Self);
}
Expand description
A container that can partition itself into pieces.
Required Methods§
sourcefn push_partitioned<I, F>(&mut self, buffers: &mut [Self], index: I, flush: F)where
I: FnMut(&Self::Item) -> usize,
F: FnMut(usize, &mut Self),
fn push_partitioned<I, F>(&mut self, buffers: &mut [Self], index: I, flush: F)where I: FnMut(&Self::Item) -> usize, F: FnMut(usize, &mut Self),
Partition and push this container.
Drain all elements from self
, and use the function index
to determine which buffer
to
append an element to. Call flush
with an index and a buffer to send the data downstream.