tiny.preserves.freeValue
Defined in tiny.preserves.
Frees the outer storage of one compound value and nothing below it.
Source
Source: lib/preserves/src/any.zig:102
zig
/// Frees the outer storage of one compound value and nothing below it. Code that built a value with/// the root constructors calls it at the end, as the README's example does. The outer storage is a/// record's label cell and field slice, the slice of a sequence, set or dictionary, the inner cell/// of a capture or bind, and a rest pattern's prefix slice and rest cell. The call matches the root/// constructors, which allocate that outer storage and borrow everything below it. The call frees/// no child value, no atom bytes and no embedded payload, and it does nothing to an atom or an/// embedded value.pub fn freeValue(alloc: std.mem.Allocator, v: AnyValue) void { ownership.freeValue(embedded_mod.AnyEmbedded, alloc, v);}Source: lib/preserves/src/root.zig:185
zig
pub const freeValue = any.freeValue;Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |