Function boxed

Source
pub unsafe fn boxed<T: AsLink>(link: *mut Link)
Expand description

Reclaims memory allocated with Box.

This function calls Box::from_raw on the linked pointer.

ยงSafety

Ensure that the correct type annotations are used when passing this function to retire. The value retired must have been of type T to be retired through boxed::<T>.