SingletonUnaryBinding creates a singleton function definition to be used for 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.UnaryOp, traits ...int)
| 249 | // Note, this approach works well if operand is expected to have a specific trait which it implements, |
| 250 | // e.g. traits.ContainerType. Otherwise, prefer per-overload function bindings. |
| 251 | func SingletonUnaryBinding(fn functions.UnaryOp, traits ...int) FunctionOpt { |
| 252 | return decls.SingletonUnaryBinding(fn, traits...) |
| 253 | } |
| 254 | |
| 255 | // SingletonBinaryImpl creates a singleton function definition to be used with all function overloads. |
| 256 | // |