Skip to documentation
SLOP

tiny.preserves.isRecord

Reference tiny.preserves isRecord

Defined in tiny.preserves.

Returns whether v is a record whose label is the symbol label and whose field count is arity.

Called byCallsNo direct callerspredicatesisRecordtiny.preservesisRecord
Static calls · unresolved targets: 0 · external targets: 0.

Source

Source: lib/preserves/src/any.zig:214

zig
/// Returns whether `v` is a record whose label is the symbol `label` and whose field count is/// `arity`. Code that dispatches on record labels calls it, as the Observe accessors do. A `null`/// label or arity skips that check. A record whose label holds a value other than a symbol fails/// every label check.pub fn isRecord(v: AnyValue, label: ?Symbol, arity: ?usize) bool {    const name: ?[]const u8 = if (label) |l| l.name else null;    return predicates.isRecord(embedded_mod.AnyEmbedded, v, name, arity);}

Source: lib/preserves/src/root.zig:206

zig
pub const isRecord = any.isRecord;

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433