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.