Files
rk35xx-android14/external/bazel-skylib/docs/structs_doc.md
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

29 lines
624 B
Markdown
Executable File

<!-- 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.