@@ -36,7 +36,7 @@ use std::slice::{self, Iter as SliceIter, IterMut as SliceIterMut};
36
36
///
37
37
/// Iterator element type is `*mut A`.
38
38
#[ derive( Debug ) ]
39
- pub struct Baseiter < A , D >
39
+ pub ( crate ) struct Baseiter < A , D >
40
40
{
41
41
ptr : * mut A ,
42
42
dim : D ,
@@ -341,7 +341,7 @@ pub struct Iter<'a, A, D>
341
341
342
342
/// Counted read only iterator
343
343
#[ derive( Debug ) ]
344
- pub struct ElementsBase < ' a , A , D >
344
+ pub ( crate ) struct ElementsBase < ' a , A , D >
345
345
{
346
346
inner : Baseiter < A , D > ,
347
347
life : PhantomData < & ' a A > ,
@@ -362,7 +362,7 @@ pub struct IterMut<'a, A, D>
362
362
///
363
363
/// Iterator element type is `&'a mut A`.
364
364
#[ derive( Debug ) ]
365
- pub struct ElementsBaseMut < ' a , A , D >
365
+ pub ( crate ) struct ElementsBaseMut < ' a , A , D >
366
366
{
367
367
inner : Baseiter < A , D > ,
368
368
life : PhantomData < & ' a mut A > ,
@@ -829,7 +829,7 @@ impl<'a, A> DoubleEndedIterator for LanesIterMut<'a, A, Ix1>
829
829
}
830
830
831
831
#[ derive( Debug ) ]
832
- pub struct AxisIterCore < A , D >
832
+ struct AxisIterCore < A , D >
833
833
{
834
834
/// Index along the axis of the value of `.next()`, relative to the start
835
835
/// of the axis.
@@ -1532,8 +1532,7 @@ send_sync_read_write!(ElementsBaseMut);
1532
1532
///
1533
1533
/// The iterator must produce exactly the number of elements it reported or
1534
1534
/// diverge before reaching the end.
1535
- #[ allow( clippy:: missing_safety_doc) ] // not nameable downstream
1536
- pub unsafe trait TrustedIterator { }
1535
+ pub ( crate ) unsafe trait TrustedIterator { }
1537
1536
1538
1537
use crate :: indexes:: IndicesIterF ;
1539
1538
use crate :: iter:: IndicesIter ;
@@ -1558,14 +1557,14 @@ unsafe impl<D> TrustedIterator for IndicesIterF<D> where D: Dimension {}
1558
1557
unsafe impl < A , D > TrustedIterator for IntoIter < A , D > where D : Dimension { }
1559
1558
1560
1559
/// Like Iterator::collect, but only for trusted length iterators
1561
- pub fn to_vec < I > ( iter : I ) -> Vec < I :: Item >
1560
+ pub ( crate ) fn to_vec < I > ( iter : I ) -> Vec < I :: Item >
1562
1561
where I : TrustedIterator + ExactSizeIterator
1563
1562
{
1564
1563
to_vec_mapped ( iter, |x| x)
1565
1564
}
1566
1565
1567
1566
/// Like Iterator::collect, but only for trusted length iterators
1568
- pub fn to_vec_mapped < I , F , B > ( iter : I , mut f : F ) -> Vec < B >
1567
+ pub ( crate ) fn to_vec_mapped < I , F , B > ( iter : I , mut f : F ) -> Vec < B >
1569
1568
where
1570
1569
I : TrustedIterator + ExactSizeIterator ,
1571
1570
F : FnMut ( I :: Item ) -> B ,
0 commit comments