[][src]Trait batched_fn::Batch

pub trait Batch: IntoIterator<Item = Self::Item> {
    type Item;
    fn with_capacity(n: usize) -> Self;
fn len(&self) -> usize;
fn push(&mut self, item: Self::Item); fn is_empty(&self) -> bool { ... } }

The Batch trait is essentially an abstraction of Vec<T>. The input and output of a batch handler must implement Batch.

It represents an owned collection of ordered items of a single type.

Associated Types

type Item

Loading content...

Required methods

fn with_capacity(n: usize) -> Self

fn len(&self) -> usize

fn push(&mut self, item: Self::Item)

Loading content...

Provided methods

fn is_empty(&self) -> bool

Loading content...

Implementations on Foreign Types

impl<T> Batch for Vec<T>[src]

type Item = T

Loading content...

Implementors

Loading content...