tiny.preserves.string
Defined in tiny.preserves.
Makes a string value that points at the caller's bytes s.
Source
Source: lib/preserves/src/any.zig:140
zig
/// Makes a string value that points at the caller's bytes `s`. Code that builds values by hand from/// bytes it keeps alive calls it. The call copies nothing, so `s` has to outlive the value./// `Value.deinit` frees string bytes, so a value over bytes the allocator does not own goes to/// `freeValue` or `freeValueDeep`. `Value.initString` makes a string value that owns a copy.pub const string = any_constructors.string;Source: lib/preserves/src/root.zig:192
zig
pub const string = any.string;Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |