We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca909c8 commit d7927ffCopy full SHA for d7927ff
src/libcore/ops.rs
@@ -153,7 +153,13 @@ use marker::Unsize;
153
/// The `Drop` trait is used to run some code when a value goes out of scope.
154
/// This is sometimes called a 'destructor'.
155
///
156
-///
+/// When a value goes out of scope, if it implements this trait, it will have
157
+/// its `drop` method called. Then any fields the value contains will also
158
+/// be dropped recursively.
159
+///
160
+/// Because of the recursive dropping, even for types that do not implement
161
+/// this trait, you do not need to implement this trait unless your type
162
+/// needs its own destructor logic.
163
164
/// # Examples
165
0 commit comments