tiny.preserves.bindVal
Defined in tiny.preserves.
Makes a bind that gives the pattern inner the name name.
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
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |