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

Function SingletonBinaryImpl

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

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

Callers

nothing calls this directly

Calls 1

SingletonBinaryBindingFunction · 0.92

Tested by

no test coverage detected