You can't create self-referencing structs in Rust.
See this similar question and answer (there are several others that are similar very recently as well):
1 Like
You can't create self-referencing structs in Rust.
See this similar question and answer (there are several others that are similar very recently as well):