Expand description
A type that can be dropped through a raw pointer, without creating an intermediary reference.
This is different from ptr::drop_in_place
because it does not invoke
Drop::drop
with a mutable reference. DropRaw::drop_raw
is the last
method called with access to the value; effectively a raw version of Drop
.
This is to avoid creating an intermediate reference, which narrows
provenance for the dropped value.
Types that implement Copy
may have their raw drops elided.