@@ -32,7 +32,7 @@ use std::slice::{self, Iter as SliceIter, IterMut as SliceIterMut};
32
32
/// Base for iterators over all axes.
33
33
///
34
34
/// Iterator element type is `*mut A`.
35
- pub struct Baseiter < A , D > {
35
+ pub ( crate ) struct Baseiter < A , D > {
36
36
ptr : * mut A ,
37
37
dim : D ,
38
38
strides : D ,
@@ -319,7 +319,7 @@ pub struct Iter<'a, A, D> {
319
319
}
320
320
321
321
/// Counted read only iterator
322
- pub struct ElementsBase < ' a , A , D > {
322
+ pub ( crate ) struct ElementsBase < ' a , A , D > {
323
323
inner : Baseiter < A , D > ,
324
324
life : PhantomData < & ' a A > ,
325
325
}
@@ -336,7 +336,7 @@ pub struct IterMut<'a, A, D> {
336
336
/// An iterator over the elements of an array.
337
337
///
338
338
/// Iterator element type is `&'a mut A`.
339
- pub struct ElementsBaseMut < ' a , A , D > {
339
+ pub ( crate ) struct ElementsBaseMut < ' a , A , D > {
340
340
inner : Baseiter < A , D > ,
341
341
life : PhantomData < & ' a mut A > ,
342
342
}
@@ -765,7 +765,7 @@ where
765
765
}
766
766
767
767
#[ derive( Debug ) ]
768
- pub struct AxisIterCore < A , D > {
768
+ struct AxisIterCore < A , D > {
769
769
/// Index along the axis of the value of `.next()`, relative to the start
770
770
/// of the axis.
771
771
index : Ix ,
@@ -1443,7 +1443,7 @@ send_sync_read_write!(ElementsBaseMut);
1443
1443
///
1444
1444
/// The iterator must produce exactly the number of elements it reported or
1445
1445
/// diverge before reaching the end.
1446
- pub unsafe trait TrustedIterator { }
1446
+ pub ( crate ) unsafe trait TrustedIterator { }
1447
1447
1448
1448
use crate :: indexes:: IndicesIterF ;
1449
1449
use crate :: iter:: IndicesIter ;
@@ -1467,15 +1467,15 @@ unsafe impl<D> TrustedIterator for IndicesIter<D> where D: Dimension {}
1467
1467
unsafe impl < D > TrustedIterator for IndicesIterF < D > where D : Dimension { }
1468
1468
1469
1469
/// Like Iterator::collect, but only for trusted length iterators
1470
- pub fn to_vec < I > ( iter : I ) -> Vec < I :: Item >
1470
+ pub ( crate ) fn to_vec < I > ( iter : I ) -> Vec < I :: Item >
1471
1471
where
1472
1472
I : TrustedIterator + ExactSizeIterator ,
1473
1473
{
1474
1474
to_vec_mapped ( iter, |x| x)
1475
1475
}
1476
1476
1477
1477
/// Like Iterator::collect, but only for trusted length iterators
1478
- pub fn to_vec_mapped < I , F , B > ( iter : I , mut f : F ) -> Vec < B >
1478
+ pub ( crate ) fn to_vec_mapped < I , F , B > ( iter : I , mut f : F ) -> Vec < B >
1479
1479
where
1480
1480
I : TrustedIterator + ExactSizeIterator ,
1481
1481
F : FnMut ( I :: Item ) -> B ,
0 commit comments