tiny.preserves.preserve
Defined in tiny.preserves.
Returns v unchanged.
Source
Source: lib/preserves/src/any.zig:271
zig
/// Returns `v` unchanged. Code that passes a value through the pattern conversions calls it for the/// same signature as the others. The call ignores `alloc` and allocates nothing. The call never/// fails, and the error union in its type exists for the root's signature alone.pub fn preserve(alloc: std.mem.Allocator, v: AnyValue) !AnyValue { return any_conversions.preserve(alloc, v);}Source: lib/preserves/src/root.zig:223
zig
pub const preserve = any.preserve;Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |