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

Function OverloadOperandTrait

cel/decls.go:388–390  ·  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

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

Callers 1

TestUnaryBindingFunction · 0.70

Calls 1

OverloadOperandTraitFunction · 0.92

Tested by 1

TestUnaryBindingFunction · 0.56