def rules(self):
rule = lib.EnvGetNextDefrule(self._env, ffi.NULL)<EOL>while rule != ffi.NULL:<EOL><INDENT>yield Rule(self._env, rule)<EOL>rule = lib.EnvGetNextDefrule(self._env, rule)<EOL><DEDENT>
Iterate over the defined Rules.