bevy/crates/bevy_reflect/src/impls/petgraph.rs
Lucas Franca 78d5c50b50
Add PartialEq and Hash reflections for AnimationNodeIndex (#18718)
# Objective

Fixes #18701

## Solution

Add reflection of `PartialEq` and `Hash` to `AnimationNodeIndex`

## Testing

Added a new `#[test]` with the minimal reproduction posted on #18701.
2025-04-04 16:35:12 +00:00

16 lines
388 B
Rust

use crate::{impl_reflect_opaque, prelude::ReflectDefault, ReflectDeserialize, ReflectSerialize};
impl_reflect_opaque!(::petgraph::graph::NodeIndex(
Clone,
Default,
PartialEq,
Hash,
Serialize,
Deserialize
));
impl_reflect_opaque!(::petgraph::graph::DiGraph<
N: ::core::clone::Clone,
E: ::core::clone::Clone,
Ix: ::petgraph::graph::IndexType
>(Clone));