Skip to documentation
SLOP

tiny.preserves.bindVal

Reference tiny.preserves bindVal

Defined in tiny.preserves.

Makes a bind that gives the pattern inner the name name.

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

Source

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

zig
/// Makes a bind that gives the pattern `inner` the name `name`. Code that writes a pattern by hand/// calls it to give part of the pattern a name. The call allocates one cell and copies the outer/// struct of `inner` into it. The call copies nothing of `name`, so `name` has to outlive the bind./// `Value.deinit` frees a bind's name, so a bind over a name the allocator does not own goes to/// `freeValue` or `freeValueDeep`. On `error.OutOfMemory` the call frees what it allocated.pub const bindVal = any_constructors.bindVal;

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

zig
pub const bindVal = any.bindVal;

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433