Searched refs:DropGuard (Results 1 – 3 of 3) sorted by relevance
/Linux-v6.1/rust/alloc/vec/ |
D | drain.rs | 110 struct DropGuard<'r, 'a, T, A: Allocator>(&'r mut Drain<'a, T, A>); in drop() struct 112 impl<'r, 'a, T, A: Allocator> Drop for DropGuard<'r, 'a, T, A> { in drop() implementation 150 let _guard = DropGuard(self); in drop()
|
D | into_iter.rs | 320 struct DropGuard<'a, T, A: Allocator>(&'a mut IntoIter<T, A>); in drop() struct 322 impl<T, A: Allocator> Drop for DropGuard<'_, T, A> { in drop() implementation 333 let guard = DropGuard(self); in drop()
|
/Linux-v6.1/rust/alloc/ |
D | slice.rs | 192 struct DropGuard<'a, T, A: Allocator> { in to_vec() struct 196 impl<'a, T, A: Allocator> Drop for DropGuard<'a, T, A> { in to_vec() implementation 207 let mut guard = DropGuard { vec: &mut vec, num_init: 0 }; in to_vec()
|