Lines Matching refs:first
39 first: *mut ListLinksFields, field
238 first: ptr::null_mut(), in new()
245 self.first.is_null() in is_empty()
262 if self.first.is_null() { in push_back()
263 self.first = item; in push_back()
271 let next = self.first; in push_back()
302 if self.first.is_null() { in push_front()
310 let next = self.first; in push_front()
323 self.first = item; in push_front()
328 if self.first.is_null() { in pop_back()
333 let last = unsafe { (*self.first).prev }; in pop_back()
340 if self.first.is_null() { in pop_front()
345 Some(unsafe { self.remove_internal(self.first) }) in pop_front()
443 if self.first == item { in remove_internal_inner()
447 self.first = unsafe { (*prev).next }; in remove_internal_inner()
467 self.first = other.first; in push_all_back()
469 let other_first = other.first; in push_all_back()
472 let self_first = self.first; in push_all_back()
488 other.first = ptr::null_mut(); in push_all_back()
495 if self.first.is_null() { in cursor_front()
499 current: self.first, in cursor_front()
510 current: self.first, in iter()
511 stop: self.first, in iter()
611 if next == self.list.first { in next()
628 if self.current == self.list.first { in prev()