MCPcopy Create free account
hub / github.com/cel-expr/cel-go / OverloadOperandTrait

Function OverloadOperandTrait

cel/decls.go:391–393  ·  view source on GitHub ↗

OverloadOperandTrait configures a set of traits which the first argument to the overload must implement in order to be successfully invoked.

(trait int)

Source from the content-addressed store, hash-verified

389// OverloadOperandTrait configures a set of traits which the first argument to the overload must implement in order to be
390// successfully invoked.
391func OverloadOperandTrait(trait int) OverloadOpt {
392 return decls.OverloadOperandTrait(trait)
393}
394
395// TypeToExprType converts a CEL-native type representation to a protobuf CEL Type representation.
396func TypeToExprType(t *Type) (*exprpb.Type, error) {

Callers 1

TestUnaryBindingFunction · 0.70

Calls 1

OverloadOperandTraitFunction · 0.92

Tested by 1

TestUnaryBindingFunction · 0.56