How do I know if something is on the stack vs heap?

后端 未结 0 1845
故里飘歌
故里飘歌 2020-11-27 20:37

In Rust there are lots of different types; how do I know if something is on the stack vs heap?

Say if I had nested structs 20 levels deep, and every level contains st

相关标签:
回答
  • 消灭零回复
提交回复
热议问题