Comprend Drop Check with Simple Examples
Concepts in Drop Check What’s the drop glue? Why do we need #[may_dangle]? In which case is a PhantomData necessary? If you don’t know the answer the questions above, this post would show you the answers by concrete examples. This page and this page in Rustonomicon and this page in the RFC book may be helpful to you. But if you find them difficult to understand like what I feel about them or too cumbersome and abstract, this post is what you want. Additionally, reading materials from different sources has a synergic effect. So although I believe this post is enough, you are encouraged to turn to other resources like those links I mentioned above if you are stuck in some part of the post. Leave me a comment when you encounter those moments. I will try to improve it. ...