Function contrafact::build_seq_fallible
source · pub fn build_seq_fallible<'a, T, F>(
g: &mut Generator<'a>,
num: usize,
fact: F
) -> ContrafactResult<Vec<T>>where
T: Bounds<'a>,
F: Fact<'a, T>,
Expand description
Build a sequence from scratch such that all Facts are satisfied.
Each Fact will run Fact::advance
after each item built, allowing stateful
facts to change as the sequence advances.