Lines Matching defs:for

47                               // ptr == end is a quick test for the Iterator being empty, that works
48 // for both ZST and non-ZST.
52 impl<T: fmt::Debug, A: Allocator> fmt::Debug for IntoIter<T, A> {
118 /// documentation for an overview.
160 // All the pointers are the same for ZSTs, so it's fine to
174 impl<T, A: Allocator> AsRef<[T]> for IntoIter<T, A> {
181 unsafe impl<T: Send, A: Allocator + Send> Send for IntoIter<T, A> {}
183 unsafe impl<T: Sync, A: Allocator + Sync> Sync for IntoIter<T, A> {}
186 impl<T, A: Allocator> Iterator for IntoIter<T, A> {
223 // See `next` for why we sub `end` here.
289 // them for `Drop`.
297 impl<T, A: Allocator> DoubleEndedIterator for IntoIter<T, A> {
303 // See above for why 'ptr.offset' isn't used
319 // SAFETY: same as for advance_by()
322 // SAFETY: same as for advance_by()
326 // SAFETY: same as for advance_by()
335 impl<T, A: Allocator> ExactSizeIterator for IntoIter<T, A> {
342 impl<T, A: Allocator> FusedIterator for IntoIter<T, A> {}
345 unsafe impl<T, A: Allocator> TrustedLen for IntoIter<T, A> {}
348 impl<T, A> Default for IntoIter<T, A>
370 // T: Copy as approximation for !Drop since get_unchecked does not advance self.ptr
373 impl<T: Copy> NonDrop for T {}
379 unsafe impl<T, A: Allocator> TrustedRandomAccessNoCoerce for IntoIter<T, A>
388 impl<T: Clone, A: Allocator + Clone> Clone for IntoIter<T, A> {
400 unsafe impl<#[may_dangle] T, A: Allocator> Drop for IntoIter<T, A> {
404 impl<T, A: Allocator> Drop for DropGuard<'_, T, A> {
428 unsafe impl<T, A: Allocator> InPlaceIterable for IntoIter<T, A> {}
432 unsafe impl<T, A: Allocator> SourceIter for IntoIter<T, A> {
442 unsafe impl<T> AsVecIntoIter for IntoIter<T> {