Check if this is an exact numeric type (integer or decimal)
(&self)
| 1508 | |
| 1509 | /// Check if this is an exact numeric type (integer or decimal) |
| 1510 | pub fn is_exact_numeric(&self) -> bool { |
| 1511 | matches!( |
| 1512 | self, |
| 1513 | TypeSpec::Integer |
| 1514 | | TypeSpec::BigInt |
| 1515 | | TypeSpec::SmallInt |
| 1516 | | TypeSpec::Int128 |
| 1517 | | TypeSpec::Int256 |
| 1518 | | TypeSpec::Decimal { .. } |
| 1519 | ) |
| 1520 | } |
| 1521 | |
| 1522 | /// Check if this is an approximate numeric type (float, real, double) |
| 1523 | pub fn is_approximate_numeric(&self) -> bool { |
nothing calls this directly
no outgoing calls
no test coverage detected