bevy/crates/bevy_sprite/src
Nicola Papale b7028110fa
Make Anchor Copy (#9327)
# Objective

In `bevy_sprite`, the `Anchor` type is not `Copy`. It makes interacting
with it more difficult than necessary.

## Solution

Derive `Copy` on it. The rust API guidelines are that you should derive
`Copy` when possible.
<https://rust-lang.github.io/api-guidelines/interoperability.html#types-eagerly-implement-common-traits-c-common-traits>
Regardless, `Anchor` is a very small `enum` which warrants `Copy`.

---

## Changelog

- In `bevy_sprite` `Anchor` is now `Copy`.

---------

Co-authored-by: Carter Anderson <mcanders1@gmail.com>
2023-08-11 21:04:53 +00:00
..
mesh2d bevy_reflect: FromReflect Ergonomics Implementation (#6056) 2023-06-29 01:31:34 +00:00
render improve shader import model (#5703) 2023-06-27 00:29:22 +00:00
bundle.rs Doc bevy sprite (#7858) 2023-03-03 18:14:40 +00:00
collide_aabb.rs Update docs to reflect that the shallowest and not the deepest penetr… (#8473) 2023-04-23 19:41:21 +00:00
dynamic_texture_atlas_builder.rs Doc bevy sprite (#7858) 2023-03-03 18:14:40 +00:00
lib.rs improve shader import model (#5703) 2023-06-27 00:29:22 +00:00
sprite.rs Make Anchor Copy (#9327) 2023-08-11 21:04:53 +00:00
texture_atlas.rs bevy_reflect: FromReflect Ergonomics Implementation (#6056) 2023-06-29 01:31:34 +00:00
texture_atlas_builder.rs Move sprite::Rect into bevy_math (#5686) 2022-09-02 12:35:23 +00:00