tiny.preserves.symbolEql
Defined in tiny.preserves.
Returns whether the bytes sym_bytes equal the name of the symbol constant s, byte for byte.
Source
Source: lib/preserves/src/any.zig:264
zig
/// Returns whether the bytes `sym_bytes` equal the name of the symbol constant `s`, byte for byte./// Code that dispatches on symbol bytes calls it against the package's symbol constants, so each/// name is spelled once.pub fn symbolEql(sym_bytes: []const u8, s: Symbol) bool { return std.mem.eql(u8, sym_bytes, s.name);}Source: lib/preserves/src/root.zig:214
zig
pub const symbolEql = any.symbolEql;Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |