You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
624 B
624 B
Skylib module containing functions that operate on structs.
structs.to_dict
structs.to_dict(s)
Converts a struct to a dict.
PARAMETERS
| Name | Description | Default Value |
|---|---|---|
| s | A struct. |
none |
RETURNS
A dict whose keys and values are the same as the fields in s. The
transformation is only applied to the struct's fields and not to any
nested values.