Function getHashPtrAddrFn [src]

Prototype

pub fn getHashPtrAddrFn(comptime K: type, comptime Context: type) (fn (Context, K) u32)

Parameters

K: typeContext: type

Source

pub fn getHashPtrAddrFn(comptime K: type, comptime Context: type) (fn (Context, K) u32) { return struct { fn hash(ctx: Context, key: K) u32 { _ = ctx; return getAutoHashFn(usize, void)({}, @intFromPtr(key)); } }.hash; }