const StringTableContext = struct
bytes: []const u8
pub fn eql(_: @This(), a: String, b: String) bool
pub fn hash(ctx: @This(), key: String) u64
104 105 106 107 108 109 110 111 112 113 114
const StringTableContext = struct { bytes: []const u8, pub fn eql(_: @This(), a: String, b: String) bool { return a == b; } pub fn hash(ctx: @This(), key: String) u64 { return std.hash_map.hashString(std.mem.sliceTo(ctx.bytes[@backingInt(key)..], 0)); } }