legate.core.StructType.num_fields#
- StructType.num_fields#
uint32_t
Get the number of fields in the struct type.
Only gets the “top-level” number of fields. For example, if this type refers to a struct of structs:
StructType[ StructType[ uint32_t, float32, complex128, string_type ] StructType[ int16_t ] ]
this function would return
2, not4or1.- Returns:
The number of fields in the struct type.
- Return type:
- Type:
StructType.num_fields