Function suppositions::generators::result [] [src]

pub fn result<G: Generator, H: Generator>(
    ok: G,
    err: H
) -> ResultGenerator<G, H>

Generates either an okay value from ok; or an error from err, with 50% chance of each.