Skip to main content

clone_boxed

Function clone_boxed 

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

Heap clone: deep-copy the box.

ยงSafety

The payload must own a Box<T> exactly once.