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

Method is_nullable

graphlite/src/ast/ast.rs:1439–1445  ·  view source on GitHub ↗

Check if this type is nullable

(&self)

Source from the content-addressed store, hash-verified

1437impl TypeSpec {
1438 /// Check if this type is nullable
1439 pub fn is_nullable(&self) -> bool {
1440 match self {
1441 TypeSpec::Reference { target_type } => target_type.is_none(),
1442 TypeSpec::List { .. } => false, // Lists themselves are not nullable by default
1443 _ => false, // Most types are not nullable by default
1444 }
1445 }
1446
1447 /// Check if this type is a scalar type
1448 pub fn is_scalar(&self) -> bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected