MCPcopy Create free account
hub / github.com/douchuan/algorithm / drop

Method drop

src/ll/linked_list.rs:177–181  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

175
176impl<T> Drop for LinkedList<T> {
177 fn drop(&mut self) {
178 unsafe { do_drop(self.head) }
179 self.head = None;
180 self.len = 0;
181 }
182}
183
184unsafe fn do_drop<T>(head: Option<NonNull<Node<T>>>) {

Callers

nothing calls this directly

Calls 1

do_dropFunction · 0.85

Tested by

no test coverage detected