struct StringIndexContext [src]
Fields
bytes: *const std.ArrayListUnmanaged(u8)
Members
Source
pub const StringIndexContext = struct {
bytes: *const std.ArrayListUnmanaged(u8),
pub fn eql(_: @This(), a: u32, b: u32) bool {
return a == b;
}
pub fn hash(ctx: @This(), key: u32) u64 {
return hashString(mem.sliceTo(ctx.bytes.items[key..], 0));
}
}