(&self)
| 89 | } |
| 90 | |
| 91 | pub fn iter(&self) -> Iter<'_, T> { |
| 92 | Iter { |
| 93 | head: self.head, |
| 94 | // tail: self.tail, |
| 95 | len: self.len, |
| 96 | marker: PhantomData, |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | pub fn first(&self) -> Option<&T> { |
| 101 | unsafe { self.head.map(|node| &node.as_ref().element) } |
nothing calls this directly
no outgoing calls
no test coverage detected