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