Searched refs:new_head (Results 1 – 3 of 3) sorted by relevance
378 pub(crate) fn insert_front<'b>(&'b mut self, mut new_head: &'a mut T) { in insert_front()381 *new_head.prev() = Rawlink::none(); in insert_front()382 self.head = Some(new_head); in insert_front()385 *new_head.prev() = Rawlink::none(); in insert_front()386 *head.prev() = Rawlink::some(new_head); in insert_front()387 mem::swap(head, &mut new_head); in insert_front()388 *head.next() = Rawlink::some(new_head); in insert_front()433 let mut new_head = unsafe { head_next.resolve_mut() }; in pop() localVariable434 mem::swap(&mut self.head, &mut new_head); in pop()440 new_head.map(|node| { in pop()
107 fn insert_partial_slab(&mut self, new_head: &'a mut P) { in insert_partial_slab()108 self.slabs.insert_front(new_head); in insert_partial_slab()112 fn insert_empty(&mut self, new_head: &'a mut P) { in insert_empty()114 new_head as *const P as usize % P::SIZE, in insert_empty()118 self.empty_slabs.insert_front(new_head); in insert_empty()
186 let new_head = self.write_any(perf_sample.s_hdr.as_bytes(), data_head)?; in write_sample() localVariable187 self.write_any(perf_sample.value, new_head) in write_sample()