data_frame_rs/
consumer.rs

1
2
3#[allow(unused)]
4pub trait DroppedValueConsumer<T> {
5    fn consume( &self, value: T) {}
6}
7
8#[allow(unused)]
9pub struct DefaultConsumer;
10impl<T> DroppedValueConsumer<T> for DefaultConsumer {
11    fn consume(&self, _value: T) {
12        // Default implementation does nothing
13    }
14}
15impl DefaultConsumer {
16    pub fn new() -> Self {
17        Self {}
18    }
19}