mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 19:58:32 +00:00
Implement HashStable for RangeInclusive.
This commit is contained in:
parent
79bde05b45
commit
e8e7ad6fb8
@ -429,6 +429,16 @@ impl<T, CTX> HashStable<CTX> for ::std::mem::Discriminant<T> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<T, CTX> HashStable<CTX> for ::std::ops::RangeInclusive<T>
|
||||||
|
where T: HashStable<CTX>
|
||||||
|
{
|
||||||
|
#[inline]
|
||||||
|
fn hash_stable(&self, ctx: &mut CTX, hasher: &mut StableHasher) {
|
||||||
|
self.start().hash_stable(ctx, hasher);
|
||||||
|
self.end().hash_stable(ctx, hasher);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl<I: vec::Idx, T, CTX> HashStable<CTX> for vec::IndexVec<I, T>
|
impl<I: vec::Idx, T, CTX> HashStable<CTX> for vec::IndexVec<I, T>
|
||||||
where T: HashStable<CTX>,
|
where T: HashStable<CTX>,
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user