Trait rustc_ap_rustc_data_structures::stable_hasher::ToStableHashKey [−][src]
pub trait ToStableHashKey<HCX> { type KeyType: Ord + Sized + HashStable<HCX>; fn to_stable_hash_key(&self, hcx: &HCX) -> Self::KeyType; }
Expand description
Implement this for types that can be turned into stable keys like, for example, for DefId that can be converted to a DefPathHash. This is used for bringing maps into a predictable order before hashing them.
Associated Types
type KeyType: Ord + Sized + HashStable<HCX>
[src]
Required methods
fn to_stable_hash_key(&self, hcx: &HCX) -> Self::KeyType
[src]
Implementations on Foreign Types
impl<HCX> ToStableHashKey<HCX> for String
[src]
impl<HCX> ToStableHashKey<HCX> for String
[src]