const Context = struct pub fn hash(_: Context, spec: PrimitiveSpec) u32pub fn eql(_: Context, lhs_spec: PrimitiveSpec, rhs_spec: PrimitiveSpec, _: usize) bool400
401
402
403
404
405
406
407
408 const Context = struct {
pub fn hash(_: Context, spec: PrimitiveSpec) u32 {
return std.hash.int(spec.bit_width);
}
pub fn eql(_: Context, lhs_spec: PrimitiveSpec, rhs_spec: PrimitiveSpec, _: usize) bool {
return lhs_spec.bit_width == rhs_spec.bit_width;
}
}