Skip to main content

Mojo function

get_struct_field_count

get_struct_field_count[T: AnyType]() -> Int

Returns the number of fields in struct T.

Parameters:

Returns:

Int: The number of fields in the struct.

Was this page helpful?