bevy/crates/bevy_reflect/bevy_reflect_derive/src
dis-da-moe 8853bef6df implement TypeUuid for primitives and fix multiple-parameter generics having the same TypeUuid (#6633)
# Objective

- Fixes #5432 
- Fixes #6680

## Solution

- move code responsible for generating the `impl TypeUuid` from `type_uuid_derive` into a new function, `gen_impl_type_uuid`.
- this allows the new proc macro, `impl_type_uuid`, to call the code for generation.
- added struct `TypeUuidDef` and implemented `syn::Parse` to allow parsing of the input for the new macro.
- finally, used the new macro `impl_type_uuid` to implement `TypeUuid` for the standard library (in `crates/bevy_reflect/src/type_uuid_impl.rs`).
- fixes #6680 by doing a wrapping add of the param's index to its `TYPE_UUID`

Co-authored-by: dis-da-moe <84386186+dis-da-moe@users.noreply.github.com>
2023-02-16 17:09:44 +00:00
..
impls Follow up on Todo in bevy_reflect_derive (#7461) 2023-02-02 04:37:32 +00:00
container_attributes.rs Make proc macros hygienic in bevy_reflect_derive (#6752) 2022-12-05 23:39:44 +00:00
derive_data.rs Enable deriving Reflect on structs with generic types (#7364) 2023-01-28 00:12:06 +00:00
documentation.rs Make proc macros hygienic in bevy_reflect_derive (#6752) 2022-12-05 23:39:44 +00:00
enum_utility.rs Fix minor typos in code and docs (#7378) 2023-01-27 12:12:53 +00:00
field_attributes.rs Add reflect(skip_serializing) which retains reflection but disables automatic serialization (#5250) 2022-09-19 16:12:10 +00:00
fq_std.rs Enable deriving Reflect on structs with generic types (#7364) 2023-01-28 00:12:06 +00:00
from_reflect.rs Follow up on Todo in bevy_reflect_derive (#7461) 2023-02-02 04:37:32 +00:00
lib.rs implement TypeUuid for primitives and fix multiple-parameter generics having the same TypeUuid (#6633) 2023-02-16 17:09:44 +00:00
reflect_value.rs bevy_reflect: Reflect doc comments (#6234) 2022-10-18 13:49:57 +00:00
registration.rs Enable deriving Reflect on structs with generic types (#7364) 2023-01-28 00:12:06 +00:00
trait_reflection.rs Fix beta clippy lints (#7154) 2023-01-11 09:51:22 +00:00
type_uuid.rs implement TypeUuid for primitives and fix multiple-parameter generics having the same TypeUuid (#6633) 2023-02-16 17:09:44 +00:00
utility.rs Follow up on Todo in bevy_reflect_derive (#7461) 2023-02-02 04:37:32 +00:00