# Objective Three impls are generated for each of these traits when the `reflect_functions` feature is enabled. Helps with #19873. ## Solution Two of the three (the `&T` and `&mut T` ones) can be avoided by instead providing blanket impls. The impl for `T` remains. ## Testing I checked the output via `cargo expand`. According to `-Zmacro-stats`, the size of the `Reflect` code generate for `bevy_ui` drops by 10.4%. |
||
|---|---|---|
| .. | ||
| impls | ||
| attribute_parser.rs | ||
| container_attributes.rs | ||
| custom_attributes.rs | ||
| derive_data.rs | ||
| documentation.rs | ||
| enum_utility.rs | ||
| field_attributes.rs | ||
| from_reflect.rs | ||
| generics.rs | ||
| ident.rs | ||
| lib.rs | ||
| meta.rs | ||
| reflect_opaque.rs | ||
| registration.rs | ||
| remote.rs | ||
| result_sifter.rs | ||
| serialization.rs | ||
| string_expr.rs | ||
| struct_utility.rs | ||
| trait_reflection.rs | ||
| type_path.rs | ||
| where_clause_options.rs | ||