use crate::OwnRef;
use core::slice::{Iter, IterMut};
const impl<'a, 'b: 'a, T> IntoIterator for &'a OwnRef<'b, [T]> {
type Item = &'a T;
type IntoIter = Iter<'a, T>;
fn into_iter(self) -> Self::IntoIter {
self.iter()
}
}
const impl<'a, 'b: 'a, T> IntoIterator for &'a mut OwnRef<'b, [T]> {
type Item = &'a mut T;
type IntoIter = IterMut<'a, T>;
fn into_iter(self) -> Self::IntoIter {
self.iter_mut()
}
}