![]() # 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%. |
||
---|---|---|
.. | ||
alloc | ||
bevy_platform | ||
core | ||
macros | ||
std | ||
foldhash.rs | ||
glam.rs | ||
hashbrown.rs | ||
petgraph.rs | ||
smallvec.rs | ||
smol_str.rs | ||
uuid.rs | ||
wgpu_types.rs |