Trait pushgen::traits::Sum[][src]

pub trait Sum<A = Self>: Sized {
    fn sum<G>(gen: G) -> Self
    where
        G: Generator<Output = A>
; }
Expand description

Trait to represent types that can be created by summing up a generator.

The trait is used to implement the sum() method on generators. Types which implement this trait can be generated by the sum() method. This trait is generally interacted with via GeneratorExt::sum.

Required methods

Implementations on Foreign Types

Implementors