MCPcopy Create free account
hub / github.com/AmrDeveloper/GQL / is_const

Method is_const

crates/gitql-ast/src/expression.rs:68–73  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

66
67impl dyn Expr {
68 pub fn is_const(&self) -> bool {
69 matches!(
70 self.kind(),
71 ExprKind::Number | ExprKind::Boolean | ExprKind::String | ExprKind::Null
72 )
73 }
74}
75
76#[derive(Clone)]

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected