def _generate_struct_class_slots(self, data_type):
with self.block('<STR_LIT>', delim=('<STR_LIT:[>', '<STR_LIT:]>')):<EOL><INDENT>for field in data_type.fields:<EOL><INDENT>field_name = fmt_var(field.name)<EOL>self.emit("<STR_LIT>" % field_name)<EOL>self.emit("<STR_LIT>" % field_name)<EOL><DEDENT><DEDENT>self.emit()<EOL>
Creates a slots declaration for struct classes.

        Slots are an optimization in Python. They reduce the memory footprint
        of instances since attributes cannot be added after declaration.