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

Function UnaryBinding

cel/decls.go:331–333  ·  view source on GitHub ↗

UnaryBinding provides the implementation of a unary overload. The provided function is protected by a runtime type-guard which ensures runtime type agreement between the overload signature and runtime argument types.

(binding functions.UnaryOp)

Source from the content-addressed store, hash-verified

329// UnaryBinding provides the implementation of a unary overload. The provided function is protected by a runtime
330// type-guard which ensures runtime type agreement between the overload signature and runtime argument types.
331func UnaryBinding(binding functions.UnaryOp) OverloadOpt {
332 return decls.UnaryBinding(binding)
333}
334
335// BinaryBinding provides the implementation of a binary overload. The provided function is protected by a runtime
336// type-guard which ensures runtime type agreement between the overload signature and runtime argument types.

Callers 15

locationCodeEnvOptionFunction · 0.92
fnEnvOptionFunction · 0.92
helper_test.goFile · 0.92
locationCodeEnvOptionFunction · 0.92
CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92
Example_statefulOverloadFunction · 0.92

Calls 1

UnaryBindingFunction · 0.92

Tested by 12

locationCodeEnvOptionFunction · 0.74
fnEnvOptionFunction · 0.74
Example_statefulOverloadFunction · 0.74
locationCodeEnvOptionFunction · 0.74
TestFunctionMergeFunction · 0.56
TestUnaryBindingFunction · 0.56
TestFunctionBindingFunction · 0.56
TestDynamicDispatchFunction · 0.56
BenchmarkDynamicDispatchFunction · 0.56