streamweave_transformers/map/
output.rs

1use super::map_transformer::MapTransformer;
2use futures::Stream;
3use std::pin::Pin;
4use streamweave::Output;
5
6impl<F, I, O> Output for MapTransformer<F, I, O>
7where
8  F: FnMut(I) -> O + Send + Clone + 'static,
9  I: std::fmt::Debug + Clone + Send + Sync + 'static,
10  O: std::fmt::Debug + Clone + Send + Sync + 'static,
11{
12  type Output = O;
13  type OutputStream = Pin<Box<dyn Stream<Item = O> + Send>>;
14}