Trait vector_stream::batcher::data::BatchData
source · pub trait BatchData<T> {
type Batch;
// Required methods
fn len(&self) -> usize;
fn take_batch(&mut self) -> Self::Batch;
fn push_item(&mut self, item: T);
// Provided method
fn is_empty(&self) -> bool { ... }
}
Required Associated Types§
Required Methods§
sourcefn take_batch(&mut self) -> Self::Batch
fn take_batch(&mut self) -> Self::Batch
Return the current batch, and reset any internal state