use crate::prelude::Stream;
mod choose_chain;
pub use self::choose_chain::ChooseChain;
pub trait HeimStreamExt: Stream {
fn choose_chain<St>(self, other: St) -> ChooseChain<Self, St>
where
St: Stream<Item = Self::Item>,
Self: Sized,
{
ChooseChain::new(self, other)
}
}
impl<T> HeimStreamExt for T where T: Stream {}