Collector

Trait Collector 

Source
pub trait Collector<Inner, Item> {
    // Required method
    fn commit(out: &RefCell<Self>, captured: Inner);
}
Expand description

A trait for types that can collect captured items into a destination.

Required Methods§

Source

fn commit(out: &RefCell<Self>, captured: Inner)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<Inner, Item> Collector<Inner, Item> for Vec<Inner>
where Inner: Destination<Item> + Default + Clone,

Source§

fn commit(out: &RefCell<Self>, captured: Inner)

Implementors§

Source§

impl<Inner, Item> Collector<Inner, Item> for Inner
where Inner: Destination<Item> + Clone,