Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Ainevsia/Leetcode-Rust
/ new
Method
new
2. Add Two Numbers/src/main.rs:10–12 ·
view source on GitHub ↗
(val: i32)
Source
from the content-addressed store, hash-verified
8
impl ListNode {
9
#[inline]
10
fn new(val: i32) -> Self {
11
ListNode { next: None, val }
12
}
13
}
14
15
pub struct Solution {}
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected