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

Function SingletonBinaryImpl

cel/decls.go:265–267  ·  view source on GitHub ↗

SingletonBinaryImpl creates a singleton function definition to be used with all function overloads. Note, this approach works well if operand is expected to have a specific trait which it implements, e.g. traits.ContainerType. Otherwise, prefer per-overload function bindings. Deprecated: use Singl

(fn functions.BinaryOp, traits ...int)

Source from the content-addressed store, hash-verified

263//
264// Deprecated: use SingletonBinaryBinding
265func SingletonBinaryImpl(fn functions.BinaryOp, traits ...int) FunctionOpt {
266 return decls.SingletonBinaryBinding(fn, traits...)
267}
268
269// SingletonBinaryBinding creates a singleton function definition to be used with all function overloads.
270//

Callers

nothing calls this directly

Calls 1

SingletonBinaryBindingFunction · 0.92

Tested by

no test coverage detected