Check if this type is a scalar type
(&self)
| 1446 | |
| 1447 | /// Check if this type is a scalar type |
| 1448 | pub fn is_scalar(&self) -> bool { |
| 1449 | matches!( |
| 1450 | self, |
| 1451 | TypeSpec::Boolean |
| 1452 | | TypeSpec::String { .. } |
| 1453 | | TypeSpec::Bytes { .. } |
| 1454 | | TypeSpec::Decimal { .. } |
| 1455 | | TypeSpec::Integer |
| 1456 | | TypeSpec::BigInt |
| 1457 | | TypeSpec::SmallInt |
| 1458 | | TypeSpec::Int128 |
| 1459 | | TypeSpec::Int256 |
| 1460 | | TypeSpec::Float { .. } |
| 1461 | | TypeSpec::Real |
| 1462 | | TypeSpec::Double |
| 1463 | | TypeSpec::Date |
| 1464 | | TypeSpec::Time { .. } |
| 1465 | | TypeSpec::Timestamp { .. } |
| 1466 | | TypeSpec::ZonedTime { .. } |
| 1467 | | TypeSpec::ZonedDateTime { .. } |
| 1468 | | TypeSpec::LocalTime { .. } |
| 1469 | | TypeSpec::LocalDateTime { .. } |
| 1470 | | TypeSpec::Duration { .. } |
| 1471 | ) |
| 1472 | } |
| 1473 | |
| 1474 | /// Check if this type is a collection type |
| 1475 | pub fn is_collection(&self) -> bool { |
nothing calls this directly
no outgoing calls
no test coverage detected