Skip to content

Commit 17869ba

Browse files
committed
Adds into_outer_iter as public fn
1 parent dbaebd0 commit 17869ba

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

src/arraytraits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ where D: Dimension
357357

358358
fn into_iter(self) -> Self::IntoIter
359359
{
360-
self.into_iter_()
360+
Iter::new(self)
361361
}
362362
}
363363

src/impl_methods.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ impl<A, D: Dimension> ArrayRef<A, D>
463463
pub fn iter(&self) -> Iter<'_, A, D>
464464
{
465465
// debug_assert!(self.pointer_is_inbounds());
466-
self.view().into_iter_()
466+
self.view().into_iter()
467467
}
468468

469469
/// Return an iterator of mutable references to the elements of the array.

src/impl_views/conversions.rs

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ where D: Dimension
213213
}
214214
}
215215

216-
/// Private array view methods
216+
/// Methods for iterating over array views
217217
impl<'a, A, D> ArrayView<'a, A, D>
218218
where D: Dimension
219219
{
@@ -229,14 +229,10 @@ where D: Dimension
229229
ElementsBase::new(self)
230230
}
231231

232-
pub(crate) fn into_iter_(self) -> Iter<'a, A, D>
233-
{
234-
Iter::new(self)
235-
}
236-
237-
/// Return an outer iterator for this view.
238-
#[doc(hidden)] // not official
239-
#[deprecated(note = "This method will be replaced.")]
232+
/// Return an outer iterator for this view, but with the lifetime
233+
/// of the view's data.
234+
///
235+
/// See [ArrayRef::outer_iter] for details.
240236
pub fn into_outer_iter(self) -> iter::AxisIter<'a, A, D::Smaller>
241237
where D: RemoveAxis
242238
{

0 commit comments

Comments
 (0)