Function autoEqlIsCheap [src]
Prototype
pub fn autoEqlIsCheap(comptime K: type) bool
Parameters
K: type
Source
pub fn autoEqlIsCheap(comptime K: type) bool {
return switch (@typeInfo(K)) {
.bool,
.int,
.float,
.pointer,
.comptime_float,
.comptime_int,
.@"enum",
.@"fn",
.error_set,
.@"anyframe",
.enum_literal,
=> true,
else => false,
};
}