MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / is_temporal

Method is_temporal

graphlite/src/ast/ast.rs:1480–1491  ·  view source on GitHub ↗

Check if this type is a temporal type

(&self)

Source from the content-addressed store, hash-verified

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 {

Callers 4

are_comparableMethod · 0.80
can_castMethod · 0.80
castMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected