impl AsRef<[T]> for vec::IntoIter<T>

This commit is contained in:
CAD97 2020-05-25 15:16:31 -04:00
parent a0f06d11ae
commit 91f52a51a2
1 changed files with 7 additions and 0 deletions

View File

@ -2603,6 +2603,13 @@ impl<T> IntoIter<T> {
}
}
#[stable(feature = "vec_intoiter_as_ref", since = "1.46.0")]
impl<T> AsRef<[T]> for IntoIter<T> {
fn as_ref(&self) -> &[T] {
self.as_slice()
}
}
#[stable(feature = "rust1", since = "1.0.0")]
unsafe impl<T: Send> Send for IntoIter<T> {}
#[stable(feature = "rust1", since = "1.0.0")]