pub fn getAutoEqlFn(comptime K: type, comptime Context: type) (fn (Context, K, K, usize) bool)
K: type
Context: type
2238 2239 2240 2241 2242 2243 2244 2245 2246
pub fn getAutoEqlFn(comptime K: type, comptime Context: type) (fn (Context, K, K, usize) bool) { return struct { fn eql(ctx: Context, a: K, b: K, b_index: usize) bool { _ = b_index; _ = ctx; return std.meta.eql(a, b); } }.eql; }