(element: T)
| 9 | |
| 10 | impl<T> Node<T> { |
| 11 | fn new(element: T) -> NonNull<Self> { |
| 12 | let v = Box::new(Node { |
| 13 | element, |
| 14 | next: None, |
| 15 | }); |
| 16 | Box::leak(v).into() |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | pub struct LinkedList<T> { |
nothing calls this directly
no outgoing calls
no test coverage detected