bevy/crates/bevy_reflect/compile_fail/tests
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
..
into_function bevy_reflect: Function reflection terminology refactor (#14813) 2024-08-19 21:52:36 +00:00
reflect_derive Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
reflect_remote bevy_reflect: Introduce reflect_clone_and_take. (#19944) 2025-07-07 19:57:29 +00:00
derive.rs
func.rs
remote.rs bevy_reflect: Reflect remote types (#6042) 2024-08-12 19:12:53 +00:00