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

Method has_time_component

graphlite/src/ast/ast.rs:1551–1562  ·  view source on GitHub ↗

Check if a temporal type has time component

(&self)

Source from the content-addressed store, hash-verified

1549
1550 /// Check if a temporal type has time component
1551 pub fn has_time_component(&self) -> bool {
1552 match self {
1553 TypeSpec::Date => false,
1554 TypeSpec::Time { .. }
1555 | TypeSpec::Timestamp { .. }
1556 | TypeSpec::ZonedTime { .. }
1557 | TypeSpec::ZonedDateTime { .. }
1558 | TypeSpec::LocalTime { .. }
1559 | TypeSpec::LocalDateTime { .. } => true,
1560 _ => false,
1561 }
1562 }
1563
1564 /// Check if a temporal type has date component
1565 pub fn has_date_component(&self) -> bool {

Callers 1

are_comparableMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected