bevy/crates/bevy_utils/src
Christopher Durham 481fa3c7a0 derive Debug, Clone for FixedState (StableAHash) (#2694)
This matches `ahash::RandomState`, which provides both `Debug` and `Clone`.

Notably, implementing `Clone` allows the `StableHashMap`/`Set` to also implement `Clone`.

# Objective

- Allow `bevy_utils::StableHashMap` to be cloned.

## Solution

- Derive `Clone` for `bevy_utils::FixedState`.
- Also derive `Debug`, since we're touching it anyway, and this aligns `FixedState` with `ahash::RandomState`.
2021-08-24 01:31:39 +00:00
..
enum_variant_meta.rs EnumVariantMeta derive (#1972) 2021-04-21 23:46:54 +00:00
lib.rs derive Debug, Clone for FixedState (StableAHash) (#2694) 2021-08-24 01:31:39 +00:00