MCPcopy Create free account
hub / github.com/douchuan/algorithm / Node

Class Node

src/ll/linked_list.rs:5–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3use std::ptr::NonNull;
4
5pub struct Node<T> {
6 pub element: T,
7 pub next: Option<NonNull<Node<T>>>,
8}
9
10impl<T> Node<T> {
11 fn new(element: T) -> NonNull<Self> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected