Lines Matching full:next
26 next: Link, field
36 next: unsafe { Link::new_unchecked(this) }, in new()
46 prev: list.next.prev().replace(unsafe { Link::new_unchecked(this)}), in insert_next()
47 next: list.next.replace(unsafe { Link::new_unchecked(this)}), in insert_next()
55 next: list.prev.next().replace(unsafe { Link::new_unchecked(this)}), in insert_prev()
62 pub fn next(&self) -> Option<NonNull<Self>> { in next() method
63 if ptr::eq(self.next.as_ptr(), self) { in next()
66 Some(unsafe { NonNull::new_unchecked(self.next.as_ptr() as *mut Self) }) in next()
73 let mut cur = self.next.clone(); in size()
75 cur = cur.next().clone(); in size()
86 if !ptr::eq(self.next.as_ptr(), &*self) { in drop()
87 let next = unsafe { &*self.next.as_ptr() }; in drop() localVariable
89 next.prev.set(&self.prev); in drop()
90 prev.next.set(&self.next); in drop()
103 /// linked list; for example, a "next" link should be pointed back
105 /// pointed back by the target `ListHead`'s "next" link.
112 fn next(&self) -> &Link { in next() method
113 unsafe { &(*self.0.get().as_ptr()).next } in next()
162 while let Some(next) = inspect.next() { in main()
164 inspect = unsafe { &*next.as_ptr() }; in main()