Searched refs:DropGuard (Results 1 - 4 of 4) sorted by relevance
/kernel/linux/linux-6.6/rust/kernel/init/ |
H A D | __internal.rs | 187 pub struct DropGuard<T: ?Sized> { structure names 191 impl<T: ?Sized> DropGuard<T> { impls 192 /// Creates a new [`DropGuard<T>`]. It will [`ptr::drop_in_place`] `ptr` when it gets dropped. 208 impl<T: ?Sized> Drop for DropGuard<T> { 211 // SAFETY: A `DropGuard` can only be constructed using the unsafe `new` function in drop()
|
/kernel/linux/linux-6.6/rust/alloc/vec/ |
H A D | into_iter.rs | 402 struct DropGuard<'a, T, A: Allocator>(&'a mut IntoIter<T, A>); in drop() structure names 404 impl<T, A: Allocator> Drop for DropGuard<'_, T, A> { in drop() 415 let guard = DropGuard(self);
|
H A D | drain.rs | 179 struct DropGuard<'r, 'a, T, A: Allocator>(&'r mut Drain<'a, T, A>); in drop() structure names 181 impl<'r, 'a, T, A: Allocator> Drop for DropGuard<'r, 'a, T, A> { in drop() 219 let _guard = DropGuard(self); in drop()
|
/kernel/linux/linux-6.6/rust/alloc/ |
H A D | slice.rs | 127 struct DropGuard<'a, T, A: Allocator> { structure names 131 impl<'a, T, A: Allocator> Drop for DropGuard<'a, T, A> { 142 let mut guard = DropGuard { vec: &mut vec, num_init: 0 };
|
Completed in 3 milliseconds