pub fn iterate_with_conditions<F, T>(&self, constructor: F) -> Result<T, SchedulerError>
    where
        F: FnOnce(&mut Circuit<Self>) -> Result<(Vec<Condition<Circuit<Self>>>, T), SchedulerError>,
    {
        self.iterate(|child| {
            let (conditions, res) = constructor(child)?;
            Ok((move || conditions.iter().all(Condition::check), res))
        })
    }
/// Create a subcircuit that iterates until multiple conditions are
/// satisfied.
///
/// Similar to `Self::iterate_with_condition`, but allows the subcircuit to
/// have multiple conditions.  The subcircuit will iterate until _all_
/// conditions are satisfied _simultaneously_ in the same clock cycle.
Create a subcircuit that iterates until multiple conditions are
satisfied.

Similar to `Self::iterate_with_condition`, but allows the subcircuit to
have multiple conditions.  The subcircuit will iterate until _all_
conditions are satisfied _simultaneously_ in the same clock cycle.
Create a subcircuit that iterates until multiple conditions are satisfied . Similar to ` Self :: iterate_with_condition ` but allows the subcircuit to have multiple conditions . The subcircuit will iterate until _all_ conditions are satisfied _simultaneously_ in the same clock cycle .
pub fn iterate_with_conditions<F, T>(&self, constructor: F) -> Result<T, SchedulerError>
    where
        F: FnOnce(&mut Circuit<Self>) -> Result<(Vec<Condition<Circuit<Self>>>, T), SchedulerError>,
    {
        self.iterate(|child| {
            let (conditions, res) = constructor(child)?;
            Ok((move || conditions.iter().all(Condition::check), res))
        })
    }
pub fn iterate_with_conditions < F , T > ( & self , constructor : F ) -> Result < T , SchedulerError > where F : FnOnce ( & mut Circuit < Self > ) -> Result < ( Vec < Condition < Circuit < Self > > > , T ) , SchedulerError > , { self . iterate ( | child | { let ( conditions , res ) = constructor ( child ) ? ; Ok ( ( move | | conditions . iter ( ) . all ( Condition :: check ) , res ) ) } ) }
Create a subcircuit that iterates until multiple conditions are
satisfied.
Create a subcircuit that iterates until multiple conditions are satisfied .
&self
constructor
F