Lines Matching refs:T
26 T: 'a,
34 pub(super) iter: slice::Iter<'a, T>,
35 pub(super) vec: NonNull<Vec<T, A>>,
39 impl<T: fmt::Debug, A: Allocator> fmt::Debug for Drain<'_, T, A> {
45 impl<'a, T, A: Allocator> Drain<'a, T, A> {
59 pub fn as_slice(&self) -> &[T] { in as_slice() argument
117 if !T::IS_ZST { in keep_rest()
142 impl<'a, T, A: Allocator> AsRef<[T]> for Drain<'a, T, A> {
143 fn as_ref(&self) -> &[T] { in as_ref() argument
149 unsafe impl<T: Sync, A: Sync + Allocator> Sync for Drain<'_, T, A> {}
151 unsafe impl<T: Send, A: Send + Allocator> Send for Drain<'_, T, A> {}
154 impl<T, A: Allocator> Iterator for Drain<'_, T, A> {
155 type Item = T;
158 fn next(&mut self) -> Option<T> { in next() argument
168 impl<T, A: Allocator> DoubleEndedIterator for Drain<'_, T, A> {
170 fn next_back(&mut self) -> Option<T> { in next_back() argument
176 impl<T, A: Allocator> Drop for Drain<'_, T, A> {
179 struct DropGuard<'r, 'a, T, A: Allocator>(&'r mut Drain<'a, T, A>); in drop()
181 impl<'r, 'a, T, A: Allocator> Drop for DropGuard<'r, 'a, T, A> { in drop()
205 if T::IS_ZST { in drop()
245 impl<T, A: Allocator> ExactSizeIterator for Drain<'_, T, A> {
252 unsafe impl<T, A: Allocator> TrustedLen for Drain<'_, T, A> {}
255 impl<T, A: Allocator> FusedIterator for Drain<'_, T, A> {}