Skip to main content

witness_list

Function witness_list 

Source
pub fn witness_list(
    f: &FnDecl,
    types: &HashMap<String, Arc<TypeDecl>>,
) -> Vec<WitnessParam>
Expand description

The hidden witness parameters of f, in order: the receiver type’s parameters first, then the function’s own, each in declaration order; within one parameter the comparator comes before the codec (the order of CONSTRAINTS). A bound is declared inline (T: Ord), in a where entry, or, for a receiver parameter, on the type. The emitter adds one trailing parameter per entry and every call site passes one argument per entry, so this order is the contract between them across units; it is not part of the published ABI.