xref: /aosp_15_r20/external/bazel-skylib/docs/structs_doc.md (revision bcb5dc7965af6ee42bf2f21341a2ec00233a8c8a)
1<!-- Generated with Stardoc: http://skydoc.bazel.build -->
2
3Skylib module containing functions that operate on structs.
4
5<a id="structs.to_dict"></a>
6
7## structs.to_dict
8
9<pre>
10structs.to_dict(<a href="#structs.to_dict-s">s</a>)
11</pre>
12
13Converts a `struct` to a `dict`.
14
15**PARAMETERS**
16
17
18| Name  | Description | Default Value |
19| :------------- | :------------- | :------------- |
20| <a id="structs.to_dict-s"></a>s |  A `struct`.   |  none |
21
22**RETURNS**
23
24A `dict` whose keys and values are the same as the fields in `s`. The
25transformation is only applied to the struct's fields and not to any
26nested values.
27
28
29