Combinable

Trait Combinable 

Source
pub trait Combinable<T> {
    // Required method
    fn combinations<'async_trait>(
        self,
        k: usize,
    ) -> Pin<Box<dyn Future<Output = Iter<Combinations<IntoIter<T>>>> + Send + 'async_trait>>
       where Self: 'async_trait;
}

Required Methods§

Source

fn combinations<'async_trait>( self, k: usize, ) -> Pin<Box<dyn Future<Output = Iter<Combinations<IntoIter<T>>>> + Send + 'async_trait>>
where Self: 'async_trait,

Implementors§

Source§

impl<T, SInput> Combinable<T> for SInput
where SInput: Stream<Item = T> + Send, T: Clone + Send + Debug,

This is a glue trait to allow streams to use Combinable in itertools. The current implementation eagerly consumes the parent stream.