fn apply(
        &self,
        context: &mut Context,
    ) -> TractResult<(bool, Vec<Box<dyn Rule<'rules> + 'rules>>)> {
        let value = self.item.get(context)?;
        trace!("    With rule: {:?} is {:?}", self.item, value);
        let mut solver = Solver::default();
        (self.closure)(&mut solver, value)?;
        Ok((true, solver.take_rules()))
    }
/// Tries to apply the rule to a given context.
Tries to apply the rule to a given context.
Tries to apply the rule to a given context .
fn apply(
        &self,
        context: &mut Context,
    ) -> TractResult<(bool, Vec<Box<dyn Rule<'rules> + 'rules>>)> {
        let value = self.item.get(context)?;
        trace!("    With rule: {:?} is {:?}", self.item, value);
        let mut solver = Solver::default();
        (self.closure)(&mut solver, value)?;
        Ok((true, solver.take_rules()))
    }
fn apply ( & self , context : & mut Context , ) -> TractResult < ( bool , Vec < Box < dyn Rule < ' rules > + ' rules > > ) > { let value = self . item . get ( context ) ? ; trace ! ( " " self item value ) ; let mut solver = Solver :: default ( ) ; ( self . closure ) ( & mut solver , value ) ? ; Ok ( ( true , solver . take_rules ( ) ) ) }
Tries to apply the rule to a given context.
Tries to apply the rule to a given context .
&self
context
&mut Context
&self
context
&mut Context