Lines Matching refs:element
52 /// Inserts an element at the end of the list
58 // Gets an internal element pointer.
72 /// Pops an element from the end of the list.
157 /// Gets a mutable reference to the tail element of the list.
164 unsafe { Some(&(*self.tail).element) }
168 /// Gets a mutable reference to the tail element of the list.
174 unsafe { Some(&mut (*(self.tail as *mut Node<T>)).element) }
285 element: T,
290 pub(crate) fn new(element: T) -> Self {
295 element,
301 self.element
306 &mut self.element
341 Some(&node.element)
353 // Uses the iterator traversal and returns the last element.
366 Some(&node.element)
390 Some(&mut node.element)
402 // Uses the iterator traversal and returns the last element.
416 Some(&mut node.element)
471 unsafe { Some(&(*self.current).element) }
533 /// Gets a mutable reference to the current element.
540 unsafe { Some(&mut (*(self.current as *mut Node<T>)).element) }
570 Some(unlinked_node.element)