tiny.preserves.recordAttributes
Defined in tiny.preserves.
Returns the attribute entries of a record whose fields are named.
Source
Source: lib/preserves/src/any.zig:206
zig
/// Returns the attribute entries of a record whose fields are named. The JSON writer uses the call/// to write such a record as a JSON object. A record with no fields has an empty list of/// attributes. A record with one field that is a dictionary whose keys are all strings has that/// dictionary's entries as attributes. The call returns `null` for any other value. The returned/// slice is the dictionary's own storage, so the call allocates nothing.pub fn recordAttributes(v: AnyValue) ?[]const AnyValue.DictionaryEntry { return predicates.recordAttributes(embedded_mod.AnyEmbedded, v);}Source: lib/preserves/src/root.zig:205
zig
pub const recordAttributes = any.recordAttributes;Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |