Lines Matching defs:next
25 next: Link,
35 next: unsafe { Link::new_unchecked(this) },
45 prev: list.next.prev().replace(unsafe { Link::new_unchecked(this)}),
46 next: list.next.replace(unsafe { Link::new_unchecked(this)}),
54 next: list.prev.next().replace(unsafe { Link::new_unchecked(this)}),
61 pub fn next(&self) -> Option<NonNull<Self>> {
62 if ptr::eq(self.next.as_ptr(), self) {
65 Some(unsafe { NonNull::new_unchecked(self.next.as_ptr() as *mut Self) })
72 let mut cur = self.next.clone();
74 cur = cur.next().clone();
85 if !ptr::eq(self.next.as_ptr(), &*self) {
86 let next = unsafe { &*self.next.as_ptr() };
88 next.prev.set(&self.prev);
89 prev.next.set(&self.next);
102 /// linked list; for example, a "next" link should be pointed back
104 /// pointed back by the target `ListHead`'s "next" link.
111 fn next(&self) -> &Link {
112 unsafe { &(*self.0.get().as_ptr()).next }
161 while let Some(next) = inspect.next() {
163 inspect = unsafe { &*next.as_ptr() };