@@ -367,7 +367,7 @@ impl<T> Bucket<T> {
367
367
}
368
368
369
369
/// A raw hash table with an unsafe API.
370
- pub struct RawTable < T , A : Allocator + Clone > {
370
+ pub struct RawTable < T , A : Allocator + Clone = Global > {
371
371
// Mask to get an index from a hash value. The value is one less than the
372
372
// number of buckets in the table.
373
373
bucket_mask : usize ,
@@ -1770,7 +1770,7 @@ impl<T> ExactSizeIterator for RawIter<T> {}
1770
1770
impl < T > FusedIterator for RawIter < T > { }
1771
1771
1772
1772
/// Iterator which consumes a table and returns elements.
1773
- pub struct RawIntoIter < T , A : Allocator + Clone > {
1773
+ pub struct RawIntoIter < T , A : Allocator + Clone = Global > {
1774
1774
iter : RawIter < T > ,
1775
1775
allocation : Option < ( NonNull < u8 > , Layout ) > ,
1776
1776
marker : PhantomData < T > ,
@@ -1845,7 +1845,7 @@ impl<T, A: Allocator + Clone> ExactSizeIterator for RawIntoIter<T, A> {}
1845
1845
impl < T , A : Allocator + Clone > FusedIterator for RawIntoIter < T , A > { }
1846
1846
1847
1847
/// Iterator which consumes elements without freeing the table storage.
1848
- pub struct RawDrain < ' a , T , A : Allocator + Clone > {
1848
+ pub struct RawDrain < ' a , T , A : Allocator + Clone = Global > {
1849
1849
iter : RawIter < T > ,
1850
1850
1851
1851
// The table is moved into the iterator for the duration of the drain. This
@@ -1915,7 +1915,7 @@ impl<T, A: Allocator + Clone> FusedIterator for RawDrain<'_, T, A> {}
1915
1915
/// Iterator over occupied buckets that could match a given hash.
1916
1916
///
1917
1917
/// In rare cases, the iterator may return a bucket with a different hash.
1918
- pub struct RawIterHash < ' a , T , A : Allocator + Clone > {
1918
+ pub struct RawIterHash < ' a , T , A : Allocator + Clone = Global > {
1919
1919
table : & ' a RawTable < T , A > ,
1920
1920
1921
1921
// The top 7 bits of the hash.
0 commit comments