pystencils.types.PsStructType#
- class pystencils.types.PsStructType(members, name=None, const=False)#
Named or anonymous structured data type.
A struct type is defined by its sequence of members. The struct may optionally have a name, although the code generator currently does not support named structs and treats them the same way as anonymous structs.
Struct member types cannot be
const
; if aconst
member type is passed, its constness will be removed.- Parameters:
args (Any)
kwargs (Any)
- Return type:
Any
- find_member(member_name)#
Find a member by name