bevy/crates/bevy_reflect/src/impls
Nicholas Nethercote d80078cf2d
bevy_reflect: Introduce reflect_clone_and_take. (#19944)
# Objective

There is a pattern that appears in multiple places, involving
`reflect_clone`, followed by `take`, followed by `map_err` that produces
a `FailedDowncast` in a particular form.

## Solution

Introduces `reflect_clone_and_take`, which factors out the repeated
code.

## Testing

`cargo run -p ci`

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
2025-07-07 19:57:29 +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 bevy_reflect: Avoid trait bounds on non-generic types (#19929) 2025-07-07 19:53:14 +00:00
macros bevy_reflect: Introduce reflect_clone_and_take. (#19944) 2025-07-07 19:57:29 +00:00
std bevy_reflect: Split up the std module (#18939) 2025-05-26 19:10:47 +00:00
foldhash.rs Harden proc macro path resolution and add integration tests. (#17330) 2025-02-09 19:45:45 +00:00
glam.rs bevy_reflect: Reflection-based cloning (#13432) 2025-03-11 06:02:59 +00:00
hashbrown.rs bevy_reflect: Split up the std module (#18939) 2025-05-26 19:10:47 +00:00
petgraph.rs Add PartialEq and Hash reflections for AnimationNodeIndex (#18718) 2025-04-04 16:35:12 +00:00
smallvec.rs bevy_reflect: Introduce reflect_clone_and_take. (#19944) 2025-07-07 19:57:29 +00:00
smol_str.rs bevy_reflect: Reflection-based cloning (#13432) 2025-03-11 06:02:59 +00:00
uuid.rs Add NonNilUuid support to bevy_reflect (#18604) 2025-05-04 08:22:57 +00:00
wgpu_types.rs bevy_reflect: Reflection-based cloning (#13432) 2025-03-11 06:02:59 +00:00