Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
3
use std::ptr::NonNull;
4
5
pub struct Node<T> {
6
pub element: T,
7
pub next: Option<NonNull<Node<T>>>,
8
}
9
10
impl<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