orx-parallel 4.0.0

Performant parallel computations with an expressive iterator API.
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::infallible::Xap;

/// Enumerable extension of [Xap].
pub trait XapEnumByInput: Xap {
    /// Type of the enumerated computation, which also implements [Xap].
    type Enumerated: Xap<I = (usize, Self::I), O = (usize, Self::O), Size = Self::Size>;

    /// Transforms the computation to enumerated one.
    fn enumerate(self) -> Self::Enumerated;
}