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

Function OverloadOperandTrait

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

356// OverloadOperandTrait configures a set of traits which the first argument to the overload must implement in order to be
357// successfully invoked.
358func OverloadOperandTrait(trait int) OverloadOpt {
359 return decls.OverloadOperandTrait(trait)
360}
361
362// TypeToExprType converts a CEL-native type representation to a protobuf CEL Type representation.
363func TypeToExprType(t *Type) (*exprpb.Type, error) {

Callers 1

TestUnaryBindingFunction · 0.70

Calls 1

OverloadOperandTraitFunction · 0.92

Tested by 1

TestUnaryBindingFunction · 0.56