Skip to documentation
SLOP

tiny.preserves.capture

Reference tiny.preserves capture

Defined in tiny.preserves.

Makes a capture of the pattern inner.

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

Source

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

zig
/// Makes a capture of the pattern `inner`. Code that writes a pattern by hand calls it to wrap an/// inner pattern in a capture. The call allocates one cell and copies the outer struct of `inner`/// into it. The capture shares everything below `inner`, and `freeValue` frees exactly the cell.pub const capture = any_constructors.capture;

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

zig
pub const capture = any.capture;

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433