Derive Hash for some types
This commit is contained in:
@@ -27,7 +27,7 @@ use std::vec::Vec;
|
||||
/// that it only allows indexing with the distinct `EntityRef` key type, so converting to a
|
||||
/// plain slice would make it easier to use incorrectly. To make a slice of a `PrimaryMap`, use
|
||||
/// `into_boxed_slice`.
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Debug, Clone, Hash)]
|
||||
#[cfg_attr(feature = "enable-serde", derive(Serialize, Deserialize))]
|
||||
pub struct PrimaryMap<K, V>
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user