Trait timely::container::PushPartitioned

source ·
pub trait PushPartitioned: PushContainer {
    // Required method
    fn push_partitioned<I, F>(
        &mut self,
        buffers: &mut [Self],
        index: I,
        flush: F
    )
       where I: for<'a> FnMut(&Self::Item<'a>) -> usize,
             F: FnMut(usize, &mut Self);
}
Expand description

A container that can partition itself into pieces.

Required Methods§

source

fn push_partitioned<I, F>(&mut self, buffers: &mut [Self], index: I, flush: F)
where I: for<'a> FnMut(&Self::Item<'a>) -> 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.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> PushPartitioned for T
where T: PushContainer + 'static, <T as Container>::Item<'a>: for<'a> PushInto<T>,