@@ -10,7 +10,7 @@ use rayon::iter::{
1010} ;
1111
1212/// Parallel iterator which returns a raw pointer to every full bucket in the table.
13- pub struct RawParIter < T > {
13+ pub ( crate ) struct RawParIter < T > {
1414 iter : RawIterRange < T > ,
1515}
1616
@@ -75,7 +75,7 @@ impl<T> UnindexedProducer for ParIterProducer<T> {
7575}
7676
7777/// Parallel iterator which consumes a table and returns elements.
78- pub struct RawIntoParIter < T , A : Allocator = Global > {
78+ pub ( crate ) struct RawIntoParIter < T , A : Allocator = Global > {
7979 table : RawTable < T , A > ,
8080}
8181
@@ -108,7 +108,7 @@ impl<T: Send, A: Allocator + Send> ParallelIterator for RawIntoParIter<T, A> {
108108}
109109
110110/// Parallel iterator which consumes elements without freeing the table storage.
111- pub struct RawParDrain < ' a , T , A : Allocator = Global > {
111+ pub ( crate ) struct RawParDrain < ' a , T , A : Allocator = Global > {
112112 // We don't use a &'a mut RawTable<T> because we want RawParDrain to be
113113 // covariant over T.
114114 table : NonNull < RawTable < T , A > > ,
@@ -206,22 +206,22 @@ impl<T> Drop for ParDrainProducer<T> {
206206impl < T , A : Allocator > RawTable < T , A > {
207207 /// Returns a parallel iterator over the elements in a `RawTable`.
208208 #[ cfg_attr( feature = "inline-more" , inline) ]
209- pub unsafe fn par_iter ( & self ) -> RawParIter < T > {
209+ pub ( crate ) unsafe fn par_iter ( & self ) -> RawParIter < T > {
210210 RawParIter {
211211 iter : self . iter ( ) . iter ,
212212 }
213213 }
214214
215215 /// Returns a parallel iterator over the elements in a `RawTable`.
216216 #[ cfg_attr( feature = "inline-more" , inline) ]
217- pub fn into_par_iter ( self ) -> RawIntoParIter < T , A > {
217+ pub ( crate ) fn into_par_iter ( self ) -> RawIntoParIter < T , A > {
218218 RawIntoParIter { table : self }
219219 }
220220
221221 /// Returns a parallel iterator which consumes all elements of a `RawTable`
222222 /// without freeing its memory allocation.
223223 #[ cfg_attr( feature = "inline-more" , inline) ]
224- pub fn par_drain ( & mut self ) -> RawParDrain < ' _ , T , A > {
224+ pub ( crate ) fn par_drain ( & mut self ) -> RawParDrain < ' _ , T , A > {
225225 RawParDrain {
226226 table : NonNull :: from ( self ) ,
227227 marker : PhantomData ,
0 commit comments