Trait marigold_impl::combinations::Combinable
source · [−]pub trait Combinable<T> {
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
fn combinations<'async_trait>(
self,
k: usize
) -> Pin<Box<dyn Future<Output = Iter<Combinations<IntoIter<T>>>> + Send + 'async_trait>> where
Self: 'async_trait,
Implementors
impl<T, SInput> Combinable<T> for SInput where
SInput: Stream<Item = T> + Send,
T: Clone + Send,
This is a glue trait to allow streams to use Combinable in itertools. The current implementation eagerly consumes the parent stream.