pub fn check_termination(&self, control_id: u64) -> bool {
        self.samplers
            .iter()
            .filter(|t| t.control_id == control_id)
            .all(|t| t.state == ControlState::Done || t.state == ControlState::Requested)
    }
/// Check if a control set can be terminated
Check if a control set can be terminated
Check if a control set can be terminated
pub fn check_termination(&self, control_id: u64) -> bool {
        self.samplers
            .iter()
            .filter(|t| t.control_id == control_id)
            .all(|t| t.state == ControlState::Done || t.state == ControlState::Requested)
    }
pub fn check_termination ( & self , control_id : u64 ) -> bool { self . samplers . iter ( ) . filter ( | t | t . control_id == control_id ) . all ( | t | t . state == ControlState :: Done || t . state == ControlState :: Requested ) }
Check if a control set can be terminated
Check if a control set can be terminated
&self
control_id
u64
&self
control_id
u64