Check if this type is a temporal type
(&self)
| 1478 | |
| 1479 | /// Check if this type is a temporal type |
| 1480 | pub fn is_temporal(&self) -> bool { |
| 1481 | matches!( |
| 1482 | self, |
| 1483 | TypeSpec::Date |
| 1484 | | TypeSpec::Time { .. } |
| 1485 | | TypeSpec::Timestamp { .. } |
| 1486 | | TypeSpec::ZonedTime { .. } |
| 1487 | | TypeSpec::ZonedDateTime { .. } |
| 1488 | | TypeSpec::LocalTime { .. } |
| 1489 | | TypeSpec::LocalDateTime { .. } |
| 1490 | ) |
| 1491 | } |
| 1492 | |
| 1493 | /// Check if this type is a numeric type |
| 1494 | pub fn is_numeric(&self) -> bool { |
no outgoing calls
no test coverage detected