Skip to documentation
SLOP

tiny.preserves.recordAttributes

Reference tiny.preserves recordAttributes

Defined in tiny.preserves.

Returns the attribute entries of a record whose fields are named.

Called byCallsNo direct callerspredicatesrecordAttributestiny.preservesrecordAttributes
Static calls · unresolved targets: 0 · external targets: 0.

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

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433