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