aboutsummaryrefslogtreecommitdiff
path: root/docs/structs_doc.md
blob: 667aa466df581446c0ae73dacfc0e1ec45c92fe5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!-- Generated with Stardoc: http://skydoc.bazel.build -->

Skylib module containing functions that operate on structs.

<a id="structs.to_dict"></a>

## structs.to_dict

<pre>
structs.to_dict(<a href="#structs.to_dict-s">s</a>)
</pre>

Converts a `struct` to a `dict`.

**PARAMETERS**


| Name  | Description | Default Value |
| :------------- | :------------- | :------------- |
| <a id="structs.to_dict-s"></a>s |  A <code>struct</code>.   |  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.