Derive Hash for some types

This commit is contained in:
Artur Jamro
2019-07-24 17:18:50 -07:00
committed by Dan Gohman
parent be36cc6538
commit 09ec0d4149
2 changed files with 6 additions and 6 deletions

View File

@@ -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