tiny.preserves.record
Defined in tiny.preserves.
Makes a record with label label and fields fields.
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
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |