Home
last modified time | relevance | path

Searched defs:DropGuard (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.1/rust/alloc/vec/
Ddrain.rs110 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
Dinto_iter.rs320 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
/Linux-v6.1/rust/alloc/
Dslice.rs192 struct DropGuard<'a, T, A: Allocator> { in to_vec() struct
193 vec: &'a mut Vec<T, A>, in to_vec()
194 num_init: usize, in to_vec()
196 impl<'a, T, A: Allocator> Drop for DropGuard<'a, T, A> { in to_vec() implementation