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

Function blueprint_predicate_kind

crates/codegen/src/unrealcpp.rs:3091–3106  ·  view source on GitHub ↗
(ty: &AlgebraicTypeUse)

Source from the content-addressed store, hash-verified

3089 }
3090
3091 fn blueprint_predicate_kind(ty: &AlgebraicTypeUse) -> Option<BlueprintPredicateKind> {
3092 match ty {
3093 AlgebraicTypeUse::Primitive(PrimitiveType::Bool) => Some(BlueprintPredicateKind::Bool),
3094 AlgebraicTypeUse::Primitive(PrimitiveType::U8) => Some(BlueprintPredicateKind::U8),
3095 AlgebraicTypeUse::Primitive(PrimitiveType::I32) => Some(BlueprintPredicateKind::I32),
3096 AlgebraicTypeUse::Primitive(PrimitiveType::I64) => Some(BlueprintPredicateKind::I64),
3097 AlgebraicTypeUse::Primitive(PrimitiveType::F32) => Some(BlueprintPredicateKind::F32),
3098 AlgebraicTypeUse::Primitive(PrimitiveType::F64) => Some(BlueprintPredicateKind::F64),
3099 AlgebraicTypeUse::String => Some(BlueprintPredicateKind::String),
3100 AlgebraicTypeUse::Identity => Some(BlueprintPredicateKind::Identity),
3101 AlgebraicTypeUse::ConnectionId => Some(BlueprintPredicateKind::ConnectionId),
3102 AlgebraicTypeUse::Timestamp => Some(BlueprintPredicateKind::Timestamp),
3103 AlgebraicTypeUse::Uuid => Some(BlueprintPredicateKind::Uuid),
3104 _ => None,
3105 }
3106 }
3107
3108 fn blueprint_predicate_kind_name(kind: BlueprintPredicateKind) -> &'static str {
3109 match kind {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…