Skip to main content

drop_shared

Function drop_shared 

Source
pub unsafe fn drop_shared<T>(payload: ValuePayload)
where T: Clone + PartialEq + Display + Debug + Send + Sync + 'static,
Expand description

Shared-heap drop: release one Arc strong count, freeing the buffer only when the final word drops.

ยงSafety

The payload must co-own an Arc<T> buffer; it must never be used again afterwards.