pub fn minInt(comptime T: type) comptime_int T: type1443
1444
1445
1446
1447
1448
1449pub fn minInt(comptime T: type) comptime_int {
const info = @typeInfo(T).int;
return switch (info.signedness) {
.unsigned => 0,
.signed => -(1 << (info.bits - 1)),
};
}
Returns the minimum value of integer type T.