pub(super) unsafe fn init_sidecars<T: TypedExternal>(
any_raw: *mut Box<dyn Any>,
owner: SEXP,
)Expand description
Flushes a freshly wrapped value’s pending values into its pointer’s
protection list: the three construction sites and
restore_after_consuming call this once the EXTPTRSXP exists.
§Safety
On R’s main thread; any_raw must own a RefCell<T>, and owner must be
the live EXTPTRSXP holding it, with a prot list built by ExternalPtr.