EN | DE

Stage 6.4: Dropping Is Hierarchical

When a struct is dropped, the struct itself is dropped first, then its children are dropped individually, and so on.

Memory details:

  • By automatically freeing memory Rust helps ensure that there are fewer memory leaks.
  • Memory resources can only be dropped once.
Tags: #structs
Share on Facebook Share on Twitter Share on Reddit Save on Pocket Share on LinkedIn Share via email