Skip to main content

cpp_defaulters_over

Function cpp_defaulters_over 

Source
pub fn cpp_defaulters_over(
    ast: &Ast,
    types: &[Id<TypeNode>],
) -> Result<Vec<Decl>, EncodeError>
Expand description

Build the defaulter for each of types, prototypes first.

The shape crate::emit::decode::decoder_over uses, and for the same reason: a defaulter may call another, and C++ resolves a call to a free function against what is declared above it.

ยงErrors

EncodeError for a construct with no C++ default.