pub fn witness_params(
f: &FnDecl,
types: &HashMap<String, Arc<TypeDecl>>,
) -> Vec<String>Expand description
The type parameters of f that take a comparator witness, in witness order
(DECISION D): the receiver type’s parameters first, in the type’s declaration
order, then the function’s own, in declaration order. A parameter is a witness
parameter when declared Ord inline (T: Ord), in a where entry, or, for
a receiver parameter, on the type (type Sorted[T: Ord]). The emitter adds
one trailing parameter per name, and every call site passes one argument per
name, so this order is the contract between them; it is not part of the
published ABI.