Lines Matching defs:drop
370 /// removed data to be erased for security purposes. Even if you drop a `Vec`, its
1142 /// It will drop down as close as possible to the length but the allocator
1477 /// Normally, here, one would use [`clear`] instead to correctly drop
1701 // Avoid double drop if the drop guard is not executed,
1713 // This drop guard will be invoked when predicate or `drop` of element panicked.
1715 // In cases when predicate and `drop` never panick, it will be optimized out.
1724 fn drop(&mut self) {
1755 // Advance early to avoid double drop if `drop_in_place` panicked.
1786 drop(g);
1855 fn drop(&mut self) {
1901 // Increase `gap.read` now since the drop may panic.
1903 /* We have found duplicate, drop it in-place */
3104 // the length every step to correctly drop what we've written.
3137 // the length every step to correctly drop what we've written.
3310 fn drop(&mut self) {
3312 // use drop for [T]
3554 // The items will not double-drop as the `set_len`
3555 // tells the `Vec` not to also drop them.