Skip to main content

overload

Function overload 

Source
pub fn overload(
    cx: &mut Cx,
    functions: Vec<FunctionObject>,
) -> Result<FunctionObject>
Expand description

Merge several functions into one whose cases are the union of theirs.

The result is a fresh FunctionObject with a generated overload: symbol and a new function id; selection then ranks across all combined cases.