Skip to main content

python_defaulters_called_by

Function python_defaulters_called_by 

Source
pub fn python_defaulters_called_by(
    ast: &Ast,
    decls: &[Statement],
) -> Result<Vec<Statement>, EncodeError>
Expand description

The defaulters decls call, and exactly those.

The set is read off the emitted calls rather than derived a second time from the model, for the reason crate::default_c::c_defaulters_called_by gives at length: a derivation beside the decoder’s is a second reading of §7.2.2.7, and the two readings drift. The closure is taken by emitting and re-reading until the batch calls nothing it does not also define.

§Errors

EncodeError for a construct with no Python default.