Skip to documentation
SLOP

tiny.preserves.record

Reference tiny.preserves record

Defined in tiny.preserves.

Makes a record with label label and fields fields.

No direct callersNo direct callstiny.preservesrecord
Static calls · unresolved targets: unknown · external targets: unknown.

Source

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

zig
/// Makes a record with label `label` and fields `fields`. Code that builds a record by hand calls/// it, as the README's example does. The call allocates one cell for the label and a copy of the/// field slice, and it copies each value's outer struct. The record shares all storage below the/// label and fields with the caller, and `freeValue` frees exactly the two allocations the call/// made. On `error.OutOfMemory` the call frees what it allocated.pub const record = any_constructors.record;

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

zig
pub const record = any.record;

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433