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.
core::intrinsics
needs_drop
1 parent 4e334d6 commit 9a6e3b9Copy full SHA for 9a6e3b9
src/libcore/intrinsics.rs
@@ -241,7 +241,12 @@ extern "rust-intrinsic" {
241
/// will trigger a compiler error.
242
pub fn return_address() -> *const u8;
243
244
- /// Returns `true` if a type requires drop glue.
+ /// Returns `true` if the actual type given as `T` requires drop
245
+ /// glue; returns `false` if the actual type provided for `T`
246
+ /// implements `Copy`.
247
+ ///
248
+ /// If the actual type neither requires drop glue nor implements
249
+ /// `Copy`, then may return `true` or `false`.
250
pub fn needs_drop<T>() -> bool;
251
252
/// Returns `true` if a type is managed (will be allocated on the local heap)
0 commit comments