tiny.preserves.symbol
Defined in tiny.preserves.
Makes a symbol value that points at the caller's bytes name.
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
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |