MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / ty

Method ty

crates/expr/src/expr.rs:428–433  ·  view source on GitHub ↗

The [AlgebraicType] of this scalar expression

(&self)

Source from the content-addressed store, hash-verified

426
427 /// The [AlgebraicType] of this scalar expression
428 pub fn ty(&self) -> &AlgebraicType {
429 match self {
430 Self::BinOp(..) | Self::LogOp(..) => &AlgebraicType::Bool,
431 Self::Value(_, ty) | Self::Param(_, ty) | Self::Field(FieldProject { ty, .. }) => ty,
432 }
433 }
434}
435
436/// A typed qualified field projection

Callers 1

_type_exprFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected