Skip to documentation
SLOP

tiny.preserves.symbol

Reference tiny.preserves symbol

Defined in tiny.preserves.

Makes a symbol value that points at the caller's bytes name.

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

Source

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

zig
/// Makes a symbol value that points at the caller's bytes `name`. Code that builds values by hand/// from a name it keeps alive calls it. The call copies nothing, so `name` has to outlive the/// value. `Value.deinit` frees symbol bytes, so a value over bytes the allocator does not own goes/// to `freeValue` or `freeValueDeep`. `Value.initSymbol` makes a symbol value that owns a copy.pub const symbol = any_constructors.symbol;

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

zig
pub const symbol = any.symbol;

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433