/// Replace any "impl trait" types with "Box<dyn trait>" equivalents
Replace any "impl trait" types with "Box" equivalents
Replace any " impl trait " types with " Box " equivalents
fn deimplify(rt: &mut ReturnType) {
    if let ReturnType::Type(_, ty) = rt {
        if let Type::ImplTrait(ref tit) = &**ty {
            let bounds = &tit.bounds;
            *ty = parse2(quote!(Box<dyn #bounds>)).unwrap();
        }
    }
}
fn deimplify ( rt : & mut ReturnType ) { if let ReturnType :: Type ( _ , ty ) = rt { if let Type :: ImplTrait ( ref tit ) = & * * ty { let bounds = & tit . bounds ; * ty = parse2 ( quote ! ( Box dyn bounds ) ) . unwrap ( ) ; } } }
Replace any "impl trait" types with "Box<dyn trait>" equivalents
Replace any " impl trait " types with " Box<dyn trait > " equivalents
rt
&mut ReturnType