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

Method is_scalar

graphlite/src/ast/ast.rs:1448–1472  ·  view source on GitHub ↗

Check if this type is a scalar type

(&self)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected