Permutable

Trait Permutable 

Source
pub trait Permutable<T> {
    // Required method
    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§

Source

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

Implementors§

Source§

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

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