MCPcopy Create free account
hub / github.com/bedroombuilds/python2rust / List

Class List

10_smart_pointers/rust/smartpointers.rs:6–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4type Result<T> = std::result::Result<T, Box<dyn error::Error>>;
5
6struct List {
7 next: Option<Box<List>>,
8 value: i32,
9}
10
11fn main() -> Result<()> {
12 let a = Box::new(5);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected