MCPcopy Create free account
hub / github.com/StudyRust/leetcode_rust / new

Method new

2181-merge-nodes-in-between-zeros.rs:10–15  ·  view source on GitHub ↗
(val: i32)

Source from the content-addressed store, hash-verified

8impl ListNode {
9 #[inline]
10 fn new(val: i32) -> Self {
11 ListNode {
12 next: None,
13 val
14 }
15 }
16}
17
18pub fn merge_nodes(head: Option<Box<ListNode>>) -> Option<Box<ListNode>> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected