def generics(self):
        """Iterates over the defined Generics."""
        defgeneric = lib.EnvGetNextDefgeneric(self._env, ffi.NULL)

        while defgeneric != ffi.NULL:
            yield Generic(self._env, defgeneric)

            defgeneric = lib.EnvGetNextDefgeneric(self._env, defgeneric)
Iterates over the defined Generics.