Deeploy.AbstractDataTypes.StructClass

Deeploy.AbstractDataTypes.StructClass(typeName: str, _structTypeDict: Dict[str, Type[BaseType]]) Type[Struct]

Helper function to dynamically generate a Struct class from a structTypeDict definition. Used in Closure Generation to capture a closure’s arguments.

Parameters:
  • typeName (str) – Name of the Struct class that is being created

  • _structTypeDict (Dict[str, Type[BaseType]]) – Layout of the Struct class that is being created

Returns:

Returns the class definition of a Struct class corresponding to the function arguments

Return type:

Type[Struct]