Module sink

Module sink 

Source
Expand description

Built-in sink implementations.

TypeDescription
CollectSink<T>Collects all items into a Vec<T>
CountSink<T>Counts items received
FnSink<T, F>Wraps a closure as a sink

Structsยง

CollectSink
Sink that collects all items into a Vec<T>.
CountSink
Sink that counts items received.
FnSink
Sink that wraps a closure.