Skip to main content

defaulter_name

Function defaulter_name 

Source
pub fn defaulter_name(ast: &Ast, id: Id<TypeNode>) -> String
Expand description

The defaulter function name for a type.

Keyed the same way crate::emit::decode::decoder_name is, so a primitive’s defaulter is named by its IDL kind and not by its Python spelling. That distinction does more work in this column than in any other: octet, unsigned short, long and unsigned long long are one Python type and four wire widths, and a name built from the Python type would give all four one defaulter.