SingletonBinaryBinding 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.
(fn functions.BinaryOp, traits ...int)
| 267 | // Note, this approach works well if operand is expected to have a specific trait which it implements, |
| 268 | // e.g. traits.ContainerType. Otherwise, prefer per-overload function bindings. |
| 269 | func SingletonBinaryBinding(fn functions.BinaryOp, traits ...int) FunctionOpt { |
| 270 | return decls.SingletonBinaryBinding(fn, traits...) |
| 271 | } |
| 272 | |
| 273 | // SingletonFunctionImpl creates a singleton function definition to be used with all function overloads. |
| 274 | // |