Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Ainevsia/Leetcode-Rust
/ new
Method
new
61. Rotate List/src/main.rs:21–26 ·
view source on GitHub ↗
(val: i32)
Source
from the content-addressed store, hash-verified
19
impl ListNode {
20
#[inline]
21
fn new(val: i32) -> Self {
22
ListNode {
23
next: None,
24
val
25
}
26
}
27
}
28
29
struct Solution {}
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected