@@ -4439,11 +4439,13 @@ impl<T, A: Allocator> FusedIterator for RawDrain<'_, T, A> {}
4439
4439
/// created will be yielded by that iterator.
4440
4440
/// - The order in which the iterator yields buckets is unspecified and may
4441
4441
/// change in the future.
4442
+ #[ cfg( feature = "raw" ) ]
4442
4443
pub struct RawIterHash < T > {
4443
4444
inner : RawIterHashInner ,
4444
4445
_marker : PhantomData < T > ,
4445
4446
}
4446
4447
4448
+ #[ cfg( feature = "raw" ) ]
4447
4449
struct RawIterHashInner {
4448
4450
// See `RawTableInner`'s corresponding fields for details.
4449
4451
// We can't store a `*const RawTableInner` as it would get
@@ -4463,19 +4465,20 @@ struct RawIterHashInner {
4463
4465
bitmask : BitMaskIter ,
4464
4466
}
4465
4467
4468
+ #[ cfg( feature = "raw" ) ]
4466
4469
impl < T > RawIterHash < T > {
4467
4470
#[ cfg_attr( feature = "inline-more" , inline) ]
4468
- #[ cfg( feature = "raw" ) ]
4469
4471
unsafe fn new < A : Allocator > ( table : & RawTable < T , A > , hash : u64 ) -> Self {
4470
4472
RawIterHash {
4471
4473
inner : RawIterHashInner :: new ( & table. table , hash) ,
4472
4474
_marker : PhantomData ,
4473
4475
}
4474
4476
}
4475
4477
}
4478
+
4479
+ #[ cfg( feature = "raw" ) ]
4476
4480
impl RawIterHashInner {
4477
4481
#[ cfg_attr( feature = "inline-more" , inline) ]
4478
- #[ cfg( feature = "raw" ) ]
4479
4482
unsafe fn new ( table : & RawTableInner , hash : u64 ) -> Self {
4480
4483
let h2_hash = h2 ( hash) ;
4481
4484
let probe_seq = table. probe_seq ( hash) ;
@@ -4493,6 +4496,7 @@ impl RawIterHashInner {
4493
4496
}
4494
4497
}
4495
4498
4499
+ #[ cfg( feature = "raw" ) ]
4496
4500
impl < T > Iterator for RawIterHash < T > {
4497
4501
type Item = Bucket < T > ;
4498
4502
@@ -4512,6 +4516,7 @@ impl<T> Iterator for RawIterHash<T> {
4512
4516
}
4513
4517
}
4514
4518
4519
+ #[ cfg( feature = "raw" ) ]
4515
4520
impl Iterator for RawIterHashInner {
4516
4521
type Item = usize ;
4517
4522
0 commit comments