Skip to documentation
SLOP

tiny.preserves.freeValue

Reference tiny.preserves freeValue

Defined in tiny.preserves.

Frees the outer storage of one compound value and nothing below it.

Called byCallsNo direct callersownershipfreeValuetiny.preservesfreeValue
Static calls · unresolved targets: 0 · external targets: 0.

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

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433