bevy/crates/bevy_reflect/src/impls
Nicholas Nethercote b8072864aa
Streamline GetOwnership/FromArg/IntoReturn (#20126)
# 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%.
2025-07-14 21:57:34 +00:00
..
alloc bevy_reflect: Introduce reflect_clone_and_take. (#19944) 2025-07-07 19:57:29 +00:00
bevy_platform bevy_reflect: Split up the std module (#18939) 2025-05-26 19:10:47 +00:00
core Streamline GetOwnership/FromArg/IntoReturn (#20126) 2025-07-14 21:57:34 +00:00
macros bevy_reflect: Introduce reflect_clone_and_take. (#19944) 2025-07-07 19:57:29 +00:00
std Streamline GetOwnership/FromArg/IntoReturn (#20126) 2025-07-14 21:57:34 +00:00
foldhash.rs
glam.rs
hashbrown.rs bevy_reflect: Split up the std module (#18939) 2025-05-26 19:10:47 +00:00
petgraph.rs
smallvec.rs bevy_reflect: Introduce reflect_clone_and_take. (#19944) 2025-07-07 19:57:29 +00:00
smol_str.rs
uuid.rs Add NonNilUuid support to bevy_reflect (#18604) 2025-05-04 08:22:57 +00:00
wgpu_types.rs