1 2 3 4 5 6 7
pub trait Conditional<FactorType> { fn num_frontals(&self) -> usize; fn num_parents(&self) -> usize; fn frontals<'a>(&self) -> Box<dyn Iterator<Item = &'a FactorType> + 'a>; fn parents<'a>(&self) -> Box<dyn Iterator<Item = &'a FactorType> + 'a>; }