lightyear_utils 0.26.4

Utils shared by lightyear crates
Documentation
1
2
3
4
5
6
7
8
9
10
#[allow(unused)]
// these are wrappers around HashMap and HashSet that use the EntityHasher
pub use bevy_ecs::entity::{hash_map::EntityHashMap, hash_set::EntityHashSet};

use bevy_platform::hash::FixedHasher;

// bevy's HashMap is `hashbrown::HashMap<K, V, S = FixedHasher>` which causes issues with type inference
// Adding this type alias to help with inference
pub type HashMap<K, V> = hashbrown::HashMap<K, V, FixedHasher>;
pub type HashSet<K> = hashbrown::HashSet<K, FixedHasher>;