Lines Matching refs:T

33     T,
36 pub(super) buf: NonNull<T>,
37 pub(super) phantom: PhantomData<T>,
42 pub(super) ptr: *const T,
43 pub(super) end: *const T,
47 impl<T: fmt::Debug, A: Allocator> fmt::Debug for IntoIter<T, A> {
53 impl<T, A: Allocator> IntoIter<T, A> {
66 pub fn as_slice(&self) -> &[T] { in as_slice() argument
84 pub fn as_mut_slice(&mut self) -> &mut [T] { in as_mut_slice() argument
95 fn as_raw_mut_slice(&mut self) -> *mut [T] { in as_raw_mut_slice() argument
96 ptr::slice_from_raw_parts_mut(self.ptr as *mut T, self.len()) in as_raw_mut_slice()
136 impl<T, A: Allocator> AsRef<[T]> for IntoIter<T, A> {
137 fn as_ref(&self) -> &[T] { in as_ref() argument
143 unsafe impl<T: Send, A: Allocator + Send> Send for IntoIter<T, A> {}
145 unsafe impl<T: Sync, A: Allocator + Sync> Sync for IntoIter<T, A> {}
148 impl<T, A: Allocator> Iterator for IntoIter<T, A> {
149 type Item = T;
152 fn next(&mut self) -> Option<T> { in next() argument
155 } else if mem::size_of::<T>() == 0 { in next()
159 self.ptr = unsafe { arith_offset(self.ptr as *const i8, 1) as *mut T }; in next()
173 let exact = if mem::size_of::<T>() == 0 { in size_hint()
184 let to_drop = ptr::slice_from_raw_parts_mut(self.ptr as *mut T, step_size); in advance_by()
185 if mem::size_of::<T>() == 0 { in advance_by()
189 self.ptr = unsafe { arith_offset(self.ptr as *const i8, step_size as isize) as *mut T } in advance_by()
222 if mem::size_of::<T>() == 0 { mem::zeroed() } else { ptr::read(self.ptr.add(i)) } in __iterator_get_unchecked()
228 impl<T, A: Allocator> DoubleEndedIterator for IntoIter<T, A> {
230 fn next_back(&mut self) -> Option<T> { in next_back() argument
233 } else if mem::size_of::<T>() == 0 { in next_back()
235 self.end = unsafe { arith_offset(self.end as *const i8, -1) as *mut T }; in next_back()
249 if mem::size_of::<T>() == 0 { in advance_back_by()
252 arith_offset(self.end as *const i8, step_size.wrapping_neg() as isize) as *mut T in advance_back_by()
258 let to_drop = ptr::slice_from_raw_parts_mut(self.end as *mut T, step_size); in advance_back_by()
271 impl<T, A: Allocator> ExactSizeIterator for IntoIter<T, A> {
278 impl<T, A: Allocator> FusedIterator for IntoIter<T, A> {}
281 unsafe impl<T, A: Allocator> TrustedLen for IntoIter<T, A> {}
291 impl<T: Copy> NonDrop for T {} implementation
297 unsafe impl<T, A: Allocator> TrustedRandomAccessNoCoerce for IntoIter<T, A>
299 T: NonDrop,
306 impl<T: Clone, A: Allocator + Clone> Clone for IntoIter<T, A> {
318 unsafe impl<#[may_dangle] T, A: Allocator> Drop for IntoIter<T, A> {
320 struct DropGuard<'a, T, A: Allocator>(&'a mut IntoIter<T, A>); in drop()
322 impl<T, A: Allocator> Drop for DropGuard<'_, T, A> { in drop()
346 unsafe impl<T, A: Allocator> InPlaceIterable for IntoIter<T, A> {}
350 unsafe impl<T, A: Allocator> SourceIter for IntoIter<T, A> {
360 unsafe impl<T> AsVecIntoIter for IntoIter<T> {
361 type Item = T;