code: def find_rule(self, rule):
          
          defrule = lib.EnvFindDefrule(self._env, rule.encode())
          if defrule == ffi.NULL:
              raise LookupError("Rule '%s' not found" % defrule)
  
          return Rule(self._env, defrule)
docs: Find a Rule by name.