burn 0.3.0

BURN: Burn Unstoppable Rusty Neurons
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pub trait Batcher<I, O>: Send + Sync {
    fn batch(&self, items: Vec<I>) -> O;
}

#[cfg(test)]
#[derive(new)]
pub struct TestBatcher;
#[cfg(test)]
impl<I> Batcher<I, Vec<I>> for TestBatcher {
    fn batch(&self, items: Vec<I>) -> Vec<I> {
        items
    }
}