pub fn inherited_default_methods(
registry: &TraitDeclRegistry,
trait_path: &TypePath,
impl_methods: &[AIRNode],
) -> Vec<AIRNode>Expand description
Resolve, for an impl Trait for Type block, the trait default methods that
the impl does not override and that must therefore be synthesized onto
the target. trait_path is the ImplBlock’s trait_path; impl_methods
its own methods. Returns cloned default-method FnDecl nodes, in
trait-declaration order. Empty when the impl has no trait, the trait is
unknown, or every default is overridden. Returns owned clones (rather than
registry borrows) so a backend can iterate them while mutating its own
emission buffer, without holding a borrow of the registry across the
&mut self writes.