2
0
Fork 0
mirror of https://github.com/bazelbuild/bazel-skylib synced 2024-11-27 05:43:25 +00:00
bazel-skylib/docs/structs_doc.md
Alexandre Rostovtsev 99ffbbf8a4
Prepare release 1.6.0 (#496)
And take the opportunity to reformat docs using a more modern Stardoc release
2024-04-24 17:40:06 -04:00

612 B
Executable file

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.