MCPcopy Create free account
hub / github.com/Ainevsia/Leetcode-Rust / ListNode

Class ListNode

2. Add Two Numbers/src/main.rs:3–6  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// Definition for singly-linked list.
2#[derive(PartialEq, Eq, Clone, Debug)]
3pub struct ListNode {
4 pub val: i32,
5 pub next: Option<Box<ListNode>>,
6}
7
8impl ListNode {
9 #[inline]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected