Expand description
Function authoring helpers built on the shared Shape engine: overload
cases, native function objects, and member-table construction.
Structs§
- Function
Case - One overload case of a
FunctionObject: a shape-typed signature paired with the native code that runs when it is selected. - Function
Object - A callable function object: a named set of shape-typed overload cases with selection driven by case priority and argument match score.
- Selected
Case - The case chosen by overload selection together with its match result.
Functions§
- case_
result_ shape - Borrow the result shape of a case, if it declares one.
- case_
shape - Borrow the argument shape of a single case.
- empty_
member_ table - Builds an empty member table for classes that expose no members.
- empty_
shape_ ref - Returns a nil shape reference, used where a function has no declared shape.
- function_
case_ result_ shape - Returns the result shape of a function overload case, if it declares one.
- function_
case_ shape - Returns the argument shape of a function overload case.
- function_
cases - Borrow the overload cases of a function object.
- overload
- Merge several functions into one whose cases are the union of theirs.
Type Aliases§
- Native
Function Impl - Native implementation backing a single
FunctionCase.