| ... | ... | @@ -298,20 +298,6 @@ pub fn isNumber(comptime T: type) bool { |
| 298 | 298 | }; |
| 299 | 299 | } |
| 300 | 300 | |
| 301 | | pub fn isIntegerNumber(comptime T: type) bool { |
| 302 | | return switch (@typeInfo(T)) { |
| 303 | | .Int, .ComptimeInt => true, |
| 304 | | else => false, |
| 305 | | }; |
| 306 | | } |
| 307 | | |
| 308 | | pub fn isFloatingNumber(comptime T: type) bool { |
| 309 | | return switch (@typeInfo(T)) { |
| 310 | | .Float, .ComptimeFloat => true, |
| 311 | | else => false, |
| 312 | | }; |
| 313 | | } |
| 314 | | |
| 315 | 301 | test "std.meta.trait.isNumber" { |
| 316 | 302 | const NotANumber = struct { |
| 317 | 303 | number: u8, |