You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[stable(feature = "drop_in_place", since = "1.8.0")]#[lang = "drop_in_place"]#[allow(unconditional_recursion)]#[rustc_diagnostic_item = "ptr_drop_in_place"]pubunsafefndrop_in_place<T: ?Sized>(to_drop:*mutT){// Code here does not matter - this is replaced by the// real drop glue by the compiler.// SAFETY: see comment aboveunsafe{drop_in_place(to_drop)}}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
{ "def_id": "DefId { id: 22, name: \"std::ptr::drop_in_place\" }", "func": "pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T)" }For
drop_in_place, the source code isBeta Was this translation helpful? Give feedback.
All reactions