Home
last modified time | relevance | path

Searched refs:DropGuard (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/rust/kernel/init/
H A D__internal.rs187 pub struct DropGuard<T: ?Sized> { struct
191 impl<T: ?Sized> DropGuard<T> { implementation
208 impl<T: ?Sized> Drop for DropGuard<T> { implementation
H A Dmacros.rs1196 $crate::init::__internal::DropGuard::new(::core::ptr::addr_of_mut!((*$slot).$field))
1227 $crate::init::__internal::DropGuard::new(::core::ptr::addr_of_mut!((*$slot).$field))
1259 $crate::init::__internal::DropGuard::new(::core::ptr::addr_of_mut!((*$slot).$field))
/openbmc/linux/rust/alloc/vec/
H A Ddrain.rs179 struct DropGuard<'r, 'a, T, A: Allocator>(&'r mut Drain<'a, T, A>); in drop() struct
181 impl<'r, 'a, T, A: Allocator> Drop for DropGuard<'r, 'a, T, A> { in drop() implementation
219 let _guard = DropGuard(self); in drop()
H A Dinto_iter.rs402 struct DropGuard<'a, T, A: Allocator>(&'a mut IntoIter<T, A>); in drop() struct
404 impl<T, A: Allocator> Drop for DropGuard<'_, T, A> { in drop() implementation
415 let guard = DropGuard(self); in drop()
/openbmc/linux/rust/alloc/
H A Dslice.rs127 struct DropGuard<'a, T, A: Allocator> { in to_vec() struct
131 impl<'a, T, A: Allocator> Drop for DropGuard<'a, T, A> { in to_vec() implementation
142 let mut guard = DropGuard { vec: &mut vec, num_init: 0 }; in to_vec()